question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: Ability to add Content Below the Tab strip but not part of the Tab Item's content like in Browsers

See original GitHub issue

Proposal: Ability to add Content Below the Tab strip but not part of the Tab Item’s content like in Browsers

Summary

Add a way to add content below the Tab strip that is still a part of the TabView control like how most Browsers implement their tabs (e.g. Favorites bar, Navigation commands and URL bar). image

Rationale

  • There is almost always a need to show common UI that can be shared by all the tabs in a TabView that cannot be satisfied by the Header and Footer placements.
  • All Browsers (imho, browsers are great examples of how tabbed UI can be used) have this when using a Tabbed UI

Scope

Capability Priority
Add common content below the Tab strip for all the Tab items Must
This content will be collapsed if not set Must

Important Notes

New properties, TabStripContent and TabStripContentTemplate, can be added to TabView.

And add a ContentPresenter that will span the whole second row of TabContainerGrid https://github.com/microsoft/microsoft-ui-xaml/blob/c5fa8a6b45efe820b80aa994751801df553117f7/dev/TabView/TabView.xaml#L29

<ContentPresenter Grid.Row="1"
                                Grid.ColumnSpan="4"
                                HorizontalAlignment="Stretch"
                                Content="{TemplateBinding TabStripContent}"
                                ContentTemplate="{TemplateBinding TabStripContentTemplate}"/>

Open Questions

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

3reactions
chingucodingcommented, Jul 12, 2020

Would there be any “design” needed for that? Reading the proposal, it seems more like we would just want to have some “static” content below the TabViewItem area, that does not get swapped out when switching tabs.

Regarding separating the Tabstrip out of TabView, I am inclined to say it wouldn’t be that beneficial, since you can just render a TabView and set the page content to null or limit the height of the TabView. However I can’t think of a case where you would only need the TabStrip, and if anybody has use cases for that I would love to hear them!

@stmoy @ranjeshj Would you be fine with me doing the next step here and create an API proposal or start implementing this feature?

1reaction
michael-hawkercommented, Dec 2, 2020

I think the ability to have this inherit the datacontext of the selected item is important as well (like knowing which URL to show in the address bar). A developer can always ignore that if they just want it to be static and fixed to be the same for each tab.

Read more comments on GitHub >

github_iconTop Results From Across the Web

44106 - Provide ability to move the tab bar under the URL bar
I hate the tabs at the top. Sometimes they are covered up by an RDP bar, and ALWAYS they are farther away and...
Read more >
Web Accessibility Criteria - Tab Order
If content is dynamically added in between of elements with positive tabindex, it will interfere with the normal flow of tabbing. Why is...
Read more >
How to ignore HTML element from tabindex?
Is there any way in HTML to tell the browser not to allow tab indexing on particular elements? On my page though there...
Read more >
Arc web browser review: a new way of using the internet
The Browser Company's Arc browser has big ideas about how to manage your tabs and bookmarks and how you interact with the internet....
Read more >
Tab View - Windows apps
The TabView control is a way to display a set of tabs and their respective content. TabViews are useful for displaying several pages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found