I have an application with a TabControl on it. The TabItems for this TabControl are created dynamically while the application is running.
The xaml-code to create the TabControl is:
<TabControl x:Name="tcTabs" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="6" TabStripPlacement="Left"/>
If I set the TabStripPlacement
to Top I can see all TabItems. But in my case, where the TabStripPlacement
is set to Left, it may occure that the TabItems are displayed outside the bounds of the application.
Is there an opportunity to get something like a scrollviewer or something else, where I can scroll to not visible TabItems? Or just set the TabItems in two or more columns on the left-border.
ControlTemplate
for theTabControl
. Is it something that you're comfortable with? – XAMeLiTabControl
template from MSDN: msdn.microsoft.com/en-us/library/ms754137.aspx (I'm not sure if it's the exact one used, but it should be close). Just copy it and edit it so theTabItems
are drawn within your boundaries – Rachel