如何添加垂直分隔符到
WPF功能区,到RibbonGroup?我已经尝试过这样的东西,但是我有一个垂直的水平分离器istead.
<r:RibbonGroup> <r:RibbonButton Command="{StaticResource SomeButton}" /> <r:RibbonSeparator></r:RibbonSeparator> <r:RibbonToggleButton IsChecked="False" Command="{StaticResource AnotherButton}"/></r:RibbonToggleButton> </r:RibbonGroup>
那我该怎么做立式分离器呢?
解决方法
这是我该怎么做
<ribbon:RibbonGroup.Resources> <!-- Vertical Separator--> <Style TargetType="{x:Type ribbon:RibbonSeparator}" x:Key="KeyRibbonSeparatorVertical"> <Setter Property="LayoutTransform"> <Setter.Value> <RotateTransform Angle="90"/> </Setter.Value> </Setter> </Style> </ribbon:RibbonGroup.Resources>