Search code examples
c#wpfxamltabcontroldirection

WPF TabControl Position Tabs in the top right corner


I have a WPF TabControl that I want to position the tabs with a TabStripPlacement of Top, but I want them to display with a right orientation on top. I've achieved that easily by doing a FlowDirection of RightToLeft; however, I don't want the children controls to inherit the RightToLeft FlowDirection.

Is there any way to position the tabs on the top on the right without using the FlowDirection property?


Solution

  • I'm not sure about this, you could always try creating a custom style for the TabControl to specify how the tabs are laid out. Alternatively, just use FlowDirection and specify the FlowDirection as LeftToRight on each individual TabItem so the child controls display normally.