-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Spec] TabView #10773
Comments
wow! |
Beautiful Stuff |
Good job! Regarding the name "TabView", I am concerned that it will create some confusion with the one in UWP, especially when the day comes where that control is mapped to Xamarin.Forms/MAUI. And I do hope that day comes since it would be a nice control to have for UWP, iPad and Android Tablet. It would be even cooler if it had a way to seamlessly transform for phones as well. |
Awesome control. However, I think this can be updated a little to cover a design like this: PropertiesTabView Properties (Additional)
TabViewItem Properties (Additional)
|
This looks great! |
@vhugogarcia Thanks for your feedback, very interesting!. With the Spec definition, you could already manage the size of the TabView, even the content or the TabStrip height. About have CornerRadius, mnnn, I suppose it would be interesting if we have the option in the TabStrip, right?. Something like In the case of the TabViewItem, you can use a template to customize the content. So you can manage Corner Radius in the TabViewItem. However, we can have the Then we have the I will update the Spec. |
Can I use this without Shell? |
It's just a bunch of forms elements put together you can use it wherever you can stick a view :-) |
Hi guys, fantastic stuff can you make sure these cool controls work without shell? Thousand of apps do not use shell and we use Prism which as you know cannot use shell till shell allows proper integration with dependency injection. thank you |
@developer9969 Please see the previous two comments and the answer of PureWeen |
@developer9969 Yes, you can use it without shell too. |
Nice ,I have been looking forward to it for a long time.Thank sir! |
Awesome!!, when can it be used? |
When I am viewing my application on an iPad in landscape, I have wide margins but I would also like to have a wide margin for the tab icons so that for example the icons are evenly spaced but they have a 200 margin to the right and to the left. Will this be possible? |
@rscholey Yes, will be possible. |
@jsuarezruiz I saw that TabView has been "Cut" from the roadmap. Does this mean that it won't resurface until MAUI ? (Same question for AppBar) |
Hi @timahrentlov, yes we cut it from the upcoming Forms releases in order to make additional room for the foundational improvements we need to focus on. In order to still ship these controls sooner we are planning to move them to the XamarinCommunityToolkit. We have good momentum there ( insert contributor recruiting pitch ;) ) and I hope this will be a reasonable option during this transitional period. @jsuarezruiz please close this issue here and move it to .NET MAUI. Same for the AppBar. |
@davidortinau can we expect to see updated roadmap soon? Even if it's just "under the hood" changes, I'm sure many would be interested to see what is the team actually working on. |
Oh what a bummer. :( |
I haven't seen a possibility to register routes for TabViewItems. Would it be possible to register routes for TabViewItems and navigate through them by using absolute navigation? |
Was it already moved to https://github.com/xamarin/XamarinCommunityToolkit? I can't find it there. Or does no code exist yet? |
https://github.com/jsuarezruiz/Xamarin.Forms.TabView I think this is the one |
@AswinPG this looks good but i think that it is older than this issue and there is not nuget for it. Still can be used for anyone needs urgently i believe |
@jsuarezruiz your repo looks already fine. you never released a nuget package for this? |
Hello @jsuarezruiz , I faced some scrollConflict on Android (issue #9315) if you don't mind, take a look |
TabView
We can have tabs using Shell. However, what happens if we want to have nested tabs within a specific section (Example: Grid)?, what if we want to fully customize each tab?. In these cases, we would need a Custom Renderer so far...
The TabView is a way to display a set of tabs and their respective content. TabView is useful for displaying several content while giving a user the capability to customize mostly everything.
NOTE: TabView is a cross-platform view that takes over when native tabs hit their limits, such as positioning with layouts, styling, and non-uniform styling like a raised button.
API
Next, a list with the TabView properties, events and visualstates.
Properties
TabView Properties
TabViewItem Properties
Events
TabView Events
TabViewItem Events
VisualStates
The Visual State Manager (VSM) provides a structured way to make visual changes to the user interface from code.
The VSM introduces the concept of visual states. TabView can have several different visual appearances depending on its underlying state.
TabView have four specific VisualStates:
Scenarios
Let's see some samples covering common scenarios.
Basic Tabs
Let's see a basic example:
TabItemsSource
Using TabItemsSource (dynamic tabs):
Custom Tabs
The appearance of each tab can be customized:
Cyclical Tabs
Do you want to navigate between the tabs cyclically?
Lazy Loading
Lazy tab loading:
Tab Transitions and TabViewItem animations
Can use Xamarin.Forms animations to customize the transition between each tab, animate the tab when appears or disappears, or even animate the badge when appears or disappears.
Using VisualStates
Can use different visual states to customize the current tab, the next tab, etc.
Create Tabs using C#
You can use XAML or C# to create the UI in Xamarin.Forms. Let's see how we would create tabs using C#.
Using Styles
Can customize the appearance of the tab content, tab strip, tab item, etc. using XAML styles or CSS.
Using XAML:
Using CSS:
Difficulty : Medium
The text was updated successfully, but these errors were encountered: