Replies: 1 comment 3 replies
-
<TabControl.Styles>
<Style Selector="TabControl">
<Setter Property="Template">
<ControlTemplate>
<DockPanel>
<ScrollViewer AllowAutoHide="False"
DockPanel.Dock="Top"
HorizontalScrollBarVisibility="Auto">
<ItemsPresenter ItemsPanel="{TemplateBinding ItemsPanel}" />
</ScrollViewer>
<ContentPresenter Content="{TemplateBinding SelectedContent}" />
</DockPanel>
</ControlTemplate>
</Setter>
</Style>
</TabControl.Styles> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
TangDave
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can add scrolling over the tab items of a TabControl using information from this post: #11896
However, a rather unfortunate side-effect is that the contents of the tab items disappear (in my sample xaml below, tab item 'One' should display 2 checkboxes but doesn't).
Here is simplified xaml which demonstrates the problem:
Beta Was this translation helpful? Give feedback.
All reactions