mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-03 14:31:28 +08:00
33 lines
1.6 KiB
XML
33 lines
1.6 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Fluent="clr-namespace:Fluent">
|
|
<Style TargetType="{x:Type Fluent:RibbonMenu}">
|
|
<Setter Property="Focusable"
|
|
Value="False" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Fluent:RibbonMenu}">
|
|
<ControlTemplate.Resources>
|
|
<Style BasedOn="{StaticResource MenuSeparatorStyle}"
|
|
TargetType="{x:Type Separator}" />
|
|
</ControlTemplate.Resources>
|
|
<Grid>
|
|
<Rectangle Fill="{x:Null}"
|
|
Stretch="Fill"
|
|
Stroke="{DynamicResource Fluent.Ribbon.Brushes.Separator.BorderBrush}"
|
|
HorizontalAlignment="Left"
|
|
Margin="24,0,0,0"
|
|
Width="1"
|
|
Height="Auto"
|
|
Grid.RowSpan="2"
|
|
Visibility="Visible" />
|
|
<StackPanel x:Name="menuPanel"
|
|
Orientation="Vertical"
|
|
IsItemsHost="True"
|
|
KeyboardNavigation.DirectionalNavigation="Continue" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |