I have a tab control in my WPF application and I'm trying to position the TabItem headers to the left as shown in this MSDN post using the below code (copied from the post):
According to the post this is what Im supposed to get:
But this is what I'm currently getting:
I've copied the exact same code from the post to my application and can't understand what has gone wrong. I know this has got something to do with the Adonis UI based styling of of the TabControl because the TabItem gets placed to to the left with the above code in applications that donot use AdonisUI.
I have a tab control in my WPF application and I'm trying to position the TabItem headers to the left as shown in this MSDN post using the below code (copied from the post):
<TabControl TabStripPlacement="Left" Margin="0, 0, 0, 10"> <TabItem Name="TabOne" Header="Tab One"> <TabItem.Content> <TextBlock TextWrapping="WrapWithOverflow"> Tab One Here. </TextBlock> </TabItem.Content> </TabItem> <TabItem Name="TabTwo" Header="Tab Two"> <TabItem.Content> <TextBlock TextWrapping="WrapWithOverflow"> Tab Two here. </TextBlock> </TabItem.Content> </TabItem> </TabControl>
According to the post this is what Im supposed to get:
But this is what I'm currently getting:
I've copied the exact same code from the post to my application and can't understand what has gone wrong. I know this has got something to do with the Adonis UI based styling of of the TabControl because the TabItem gets placed to to the left with the above code in applications that donot use AdonisUI.
Here is my full xaml:
<Window x:Class="OptionsWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TabStripPlacementSample" Height="200" Width="250" UseLayoutRounding="True"> <Grid> <TabControl TabStripPlacement="Left" Margin="0,0,33,10"> <TabItem Name="TabOne" Header="Tab One"> <TabItem.Content> <TextBlock TextWrapping="WrapWithOverflow"> Tab One Here. </TextBlock> </TabItem.Content> </TabItem> <TabItem Name="TabTwo" Header="Tab Two"> <TabItem.Content> <TextBlock TextWrapping="WrapWithOverflow"> Tab Two here. </TextBlock> </TabItem.Content> </TabItem> </TabControl> </Grid>