2012-03-06 65 views
1

我使用了TabStripPlacement =「Left」,它在左邊做了標題,但我也希望它們在底部,我該怎麼做?Silverlight標籤左邊的按鈕

enter image description here

XAML:

<Grid x:Name="LayoutRoot" Background="White"> 
    <Grid.Resources> 
     <Style TargetType="Primitives:TabPanel"> 
      <Setter Property="VerticalAlignment" Value="Bottom"/> 
     </Style> 
    </Grid.Resources> 

    <sdk:TabControl TabStripPlacement="Left" x:Name="MainTabControl" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch"> 
     <sdk:TabControl.Items> 
      <sdk:TabItem Header="File 1"/> 
      <sdk:TabItem Header="File 2"/> 
      <sdk:TabItem Header="File 3"/> 
      <sdk:TabItem Header="File 4"/> 
     </sdk:TabControl.Items> 
    </sdk:TabControl> 
</Grid> 

回答

1

我通過在TabControl的模板樣式設置VerticalAlignment = 「BUTTOM」,在左側部分的TabPanel對象上解決了這個問題。