记录一个TabControl标签header在左则,但文字是竖向排放
作者:互联网
<Grid> <TabControl TabStripPlacement="Left"> <TabControl.Resources> <Style TargetType="{x:Type TabItem}"> <Setter Property="HeaderTemplate"> <Setter.Value> <DataTemplate> <ContentPresenter Content="{TemplateBinding Content}"> <ContentPresenter.LayoutTransform> <RotateTransform Angle="270" /> </ContentPresenter.LayoutTransform> </ContentPresenter> </DataTemplate> </Setter.Value> </Setter> <Setter Property="Padding" Value="3" /> </Style> </TabControl.Resources> <TabItem Header="General"> <Label Content="Content goes here..." /> </TabItem> <TabItem Header="Security" /> <TabItem Header="Details" /> </TabControl> </Grid>
因为之前没想过这种写法,那么这种写法还能推广出其它的什么玩法?
故在此作下记录,后面补充其它玩法
标签:其它,header,左则,记录,玩法,竖向,TabControl,写法 来源: https://www.cnblogs.com/stweily/p/16691873.html