TabItem z-index order [solved]
-
If you make a tabcontrol and add a few tabitems with negative margin, the tabitems overlap each other, but the ones on the right are always on top of the ones on the left. Is there a way to make the tabitems on the left be on top of the tab items on the right?
modified on Monday, December 22, 2008 3:32 PM
-
If you make a tabcontrol and add a few tabitems with negative margin, the tabitems overlap each other, but the ones on the right are always on top of the ones on the left. Is there a way to make the tabitems on the left be on top of the tab items on the right?
modified on Monday, December 22, 2008 3:32 PM
Solution: 1) Set Panel.FlowDirection="RightToLeft" on the TabControl 2) Go to TabControl style & find the HeaderPanel 3) Set the HorizontalAlignment of the HeaderPanel to "Right" (or whatever side you choose) 4) Set Panel.FlowDirection="LeftToRight" on the TabItem style
modified on Monday, December 22, 2008 4:08 PM