New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tabs And NavigationRail Styles for WPF TabControl #2026
Tabs And NavigationRail Styles for WPF TabControl #2026
Conversation
It's pretty nice ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really great work! Thank you for doing this!
A few comments:
- It would be great to pull the generic TabControl styles out for now, and submit a follow up PR. TabControl styles are a bit of a hot button topic, and I need to get more approval before that portion merges.
Some other optional items that could also be done later:
- Making the Divider optional. It looks like we are using a drop shadow for it now, but the spec appears to just be a simple line.
- Include in demo app, a sample using text labels. Ideally this show default with text wrapping. It might be nice to also have the demo show the text label only appearing on the selected tab (Selected text labels example).
- Demo app sample showing badge control use in the TabItem Header.
- Demo app showing it used for bottom navigation
Thanks for the review! Related to the Divider tip, I've added it. About the drop shadow, I made it inheritable by materialDesign:ShadowAssist.ShadowDepth, with a Depth2 as (old) default. Now is set to Depth0): |
I push some changes that should address the colors (I also added a simple UI test for it). Regarding the shadow I would suggest that we simply remove it for now. The spec only appears to have the separator so I think it is fine to start small. I am fine if you simply want to comment out the other tab styles. |
Hello @Keboo ! I've seen that you removed this Line from Style: Didn't you have any problems on your tests without this? For me, without this, the default TabControl's Style applies a white solid brush. This is the reason why I insisted setting it to null. |
Next stage of study/work/test:
|
Added to Demo App.
Updated demo navigation rail for theme colors. Handled background and foreground theme colors.
6b4a9fd
to
177c13a
Compare
@HClausing I got this merged for the 3.2.0 release. I do have a copy of the work prior to tonight's changes sitting in one of my branches as well. |
Hello! Thanks so much. One doubt: To use the NavigationRail style, it wont' be on Defautls.xaml (like Textbox, etc) and needs to be referenced on merged dictionaries of app.xaml (like DataGrid, PopupBox, etc) ? |
Tabs:
Navigation Rail:
Source:
Tabs
NavigationRail