如何在左侧获得TabItems ... [英] How do I get TabItems on the left side...

查看:64
本文介绍了如何在左侧获得TabItems ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的WPF项目中使用 JOSUEYERAY BlackCrystal Style 。但我尝试将TabItems放到左侧,就像你可以使用TabControl属性TabStripPlacement =Left一样,不幸的是我无法让它工作,因为我是整个xaml的新手。



就我的测试而言,我可以将其缩小到可能处理这些东西的某些代码行但我不确定



 <   TabPanel    名称  =  HeaderPanel    Grid.Row   = < span class =code-keyword> 0    Panel.ZIndex   =  1    Grid.Column   =  1     保证金  =  0,0,4,-1    IsItemsHost   =    < span class =code-attribute> KeyboardNavigation.TabIndex   =  1   已移除  = 透明    /  >  
< Border 名称 = BaseBorder Grid.Row = 1 Grid.ColumnSpan = 2 已删除 = {StaticResource BaseColor} BorderBrush = 黑色 BorderThickness = 1 CornerRadius = 5 > < / Border >
< Border 名称 = 边框 Grid.Row = 1 Grid.ColumnSpan = 2 已删除 = {StaticResource GlassFX} BorderBrush = 黑色 BorderThickness = 1 CornerRadius = 5
KeyboardNavigation .TabNavigation = Local KeyboardNavigation.DirectionalNavigation = 包含 KeyboardNavigation.TabIndex = 2 不透明度 = 。7 >
< ContentPresenter 名称 = PART_SelectedContentHost 保证金 = 4 ContentSource = SelectedContent / >
< / Border >





任何人都知道怎么做?

 .ta 
{
text-align:left;

}









使用css


I use in my WPF Project JOSUEYERAY BlackCrystal Style. But I tried to get the TabItems to the left side like you can do with the TabControl Attribute TabStripPlacement="Left", unfortunately I couldn't get it work because I am new to the whole xaml thing.

As far as my testing goes I could narrow it down to some line of code which probably handles this stuff but I'm not sure

<TabPanel Name="HeaderPanel" Grid.Row="0" Panel.ZIndex="1" Grid.Column="1"  Margin="0,0,4,-1" IsItemsHost="True" KeyboardNavigation.TabIndex="1" removed="Transparent" />
<Border Name="BaseBorder" Grid.Row="1" Grid.ColumnSpan="2" removed="{StaticResource BaseColor}"  BorderBrush="Black" BorderThickness="1" CornerRadius="5"></Border>
<Border Name="Border" Grid.Row="1" Grid.ColumnSpan="2" removed="{StaticResource GlassFX}"  BorderBrush="Black" BorderThickness="1" CornerRadius="5"
        KeyboardNavigation.TabNavigation="Local" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabIndex="2" Opacity=".7" >
  <ContentPresenter Name="PART_SelectedContentHost" Margin="4" ContentSource="SelectedContent" />
</Border>



Anyone knows how to do this?

解决方案

.ta
{
  text-align:left;

    }





use css


这篇关于如何在左侧获得TabItems ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆