Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Nov 8, 2023
1 parent 24a4693 commit 978b78d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ModernWpf/Styles/MenuItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,14 @@
BorderThickness="{TemplateBinding BorderThickness}"
Margin="{DynamicResource MenuFlyoutItemMargin}"
CornerRadius="{TemplateBinding primitives:ControlHelper.CornerRadius}">
<Grid x:Name="AnimationRoot">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition SharedSizeGroup="{TemplateBinding Visibility, Converter={StaticResource SharedSizeGroupConverter}, ConverterParameter=MenuItemCheckColumnGroup}" Width="Auto" />
<ColumnDefinition SharedSizeGroup="{TemplateBinding Visibility, Converter={StaticResource SharedSizeGroupConverter}, ConverterParameter=MenuItemIconColumnGroup}" Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<local:FontIconFallback
x:Name="CheckGlyph"
FontFamily="{DynamicResource SymbolThemeFontFamily}"
Expand Down Expand Up @@ -259,13 +260,14 @@
Margin="{DynamicResource MenuFlyoutItemMargin}"
CornerRadius="{TemplateBinding primitives:ControlHelper.CornerRadius}"
SnapsToDevicePixels="True">
<Grid x:Name="AnimationRoot">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition SharedSizeGroup="MenuItemCheckColumnGroup" Width="Auto" />
<ColumnDefinition SharedSizeGroup="MenuItemIconColumnGroup" Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<Viewbox
x:Name="IconRoot"
Grid.Column="1"
Expand All @@ -274,10 +276,7 @@
Width="16"
Height="16"
Margin="0,0,12,0">
<ContentPresenter
x:Name="IconContent"
ContentSource="Icon"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
<ContentPresenter x:Name="IconContent" ContentSource="Icon" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Viewbox>
<ContentPresenter
x:Name="ContentPresenter"
Expand Down

0 comments on commit 978b78d

Please sign in to comment.