-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Feature/Fluent TabControl #4133
Feature/Fluent TabControl #4133
Conversation
Since this style is based on UWP's Pivot, it brings some specific style details:
Probably Margin should be removed, because it could be uncomfortable for developers to migrate to new style. @danwalmsley Also:
|
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.
Tested and LawesomeTM
I'm a little confused by this control. As noted, it appears more like UWP's Pivot (and it using those style resources). Is this going to cause confusion down the road when a full TabView control is needed? There are a lot of features in a TabView not covered here.
Should this control be renamed? |
@robloo This control was named as "TabControl" in WPF, and is familiar for developers. But I agree. WinUI doesn't have such a problem - it have never had control named "TabControl" (there is Pivot and MasterDetailsView instead), so TabView is not conflicted with anything. Avalonia could have complex browser-like TabView in future. FYI @danwalmsley |
In WinUI there are NavigationView and TabView, but Pivot still could be used as light-weight control and is easier to restyle. Also it supports swipe navigation (NavView and TabView don't). Right now there is TabControl with Fluent-like selected indicator. Not Pivot, not TabView. |
Implementing all TabView features on top of TabControl shouldn't be that hard. I don't think we should rename all controls to match WinUI's naming. |
I guess my concern is there is a big conceptual difference between a Pivot and TabView in WinUI. There is a use case for both situations. Pivot : Lightweight view that simply cycles through different views represented by a header I think it's important to decide if TabControl will be one or the other. I certainly don't think it should be both -- I don't care so much about the name. However, if TabControl really will be more of a 'Pivot' style or classic WPF TabControl, then there is going to be a lot of confusion when/if TabView gets added. |
Separately, with the left/right styles above. What happens with right-to-left vs left-to-right languages? The indicator should actually switch sides. |
Y it should but we currently don't have FlowDirection support |
We could rename it, but only at the point that someone implements a real |
What does the pull request do?