We need a classic TabControl for Desktop applications
For a classic desktop application, we need a TabControl. Currently you can use the Pivot or there are 3rd-party vendors providing a TabControl. But as this is such a central control, it should be part of the platform.
If you build it, it would be great if you could add configurable close-functionality to the tab-header that is bindable to a ViewModel.
I’ve spent some hours to build a small MVVM/UWP/Pivot Prototype that does the typical stuff we do today in WPF with TabControl. And I was impressed how far I got. Sample is here:
Big asks are asks are
* Styling of headers
** I think this could be made simpler by support for example a HeaderStyle-Property on the Pivot
* Layout of headers
** Currently the Pivot has no overflow-panel. It’s also not wrapping the headers. Maybe the dev should be able to define the panel used for the headers. I didn’t find the option.
* Implicit DataTemplates (not really an issue of the Pivot, but would be great to have these. I created a separate uservoice entry)
* Styling of content (I was not able to get rid of that entrance-animation (“slide in from the left”-animation/-transition))
* allow for no overflow
* allow for no wrapping
Thomas Claudius Huber commented
Hi Clint, styling might be nearly sufficient. There seem to be some harder parts with the headers:
- no overflow
- no wrapping
I've written a blog-post for you, includes a sample of a databound Pivot in UWP on Github:
Hi everyone that is backing this, can we go into more how the Pivot with some styling isn't enough?
Is there a great example of a data bound tab control?
One of the main features that is missing in the pivot control is the look and feel of a classic TabControl. Eventually we should be able to build classic desktop apps with UWP.
Because WPF does not get any love anymore and we want to base our future products on a stack that is not ... outdated.
Can you explain what the current pivot control lacks that the older tabs has?