Skip to content

Commit

Permalink
Fixes #795 by changing order in xaml
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed May 21, 2020
1 parent cd18a14 commit 3052938
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 36 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- [#788](../../issues/788) - Maximize icon is incorrectly drawn on high-dpi displays
- [#789](../../issues/789) - Opening gallery messes up InRibbonGallery resizing.
- [#791](../../issues/791) - Problem with dynamic items in InRibbonGallery
- [#795](../../issues/795) - Check mark of menuitem not visible

## 7.1.0

Expand Down
72 changes: 36 additions & 36 deletions Fluent.Ribbon/Themes/Controls/MenuItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,6 @@
Grid.Column="1"
d:LayoutOverrides="Width"
RecognizesAccessKey="{Binding Path=(Fluent:MenuItem.RecognizesAccessKey), RelativeSource={RelativeSource TemplatedParent}}" />
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<Border x:Name="iconImageBorder"
BorderThickness="1">
<ContentPresenter x:Name="iconImage"
Expand All @@ -192,6 +183,15 @@
Margin="3,2,2,2"
SnapsToDevicePixels="True" />
</Border>
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<TextBlock x:Name="gestureTextBlock"
Text="{TemplateBinding InputGestureText}"
Width="Auto"
Expand Down Expand Up @@ -305,15 +305,6 @@
Grid.Column="1"
d:LayoutOverrides="Width"
RecognizesAccessKey="{Binding Path=(Fluent:MenuItem.RecognizesAccessKey), RelativeSource={RelativeSource TemplatedParent}}" />
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<Border x:Name="iconImageBorder"
BorderThickness="1">
<ContentPresenter x:Name="iconImage"
Expand All @@ -325,6 +316,15 @@
Margin="3,2,2,2"
SnapsToDevicePixels="True" />
</Border>
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<Path x:Name="path"
Stretch="Fill"
Stroke="{x:Null}"
Expand Down Expand Up @@ -566,15 +566,6 @@
Grid.Column="1"
d:LayoutOverrides="Width"
RecognizesAccessKey="{Binding Path=(Fluent:MenuItem.RecognizesAccessKey), RelativeSource={RelativeSource TemplatedParent}}" />
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<Border x:Name="iconImageBorder"
BorderThickness="1">
<ContentPresenter x:Name="iconImage"
Expand All @@ -586,6 +577,15 @@
Margin="3,2,2,2"
SnapsToDevicePixels="True" />
</Border>
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<Path x:Name="path"
Stretch="Fill"
Stroke="{x:Null}"
Expand Down Expand Up @@ -827,15 +827,6 @@
Grid.Column="1"
d:LayoutOverrides="Width"
RecognizesAccessKey="{Binding Path=(Fluent:MenuItem.RecognizesAccessKey), RelativeSource={RelativeSource TemplatedParent}}" />
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<Border x:Name="iconImageBorder"
BorderThickness="1">
<ContentPresenter x:Name="iconImage"
Expand All @@ -847,6 +838,15 @@
Margin="3,2,2,2"
SnapsToDevicePixels="True" />
</Border>
<Image x:Name="checkedImage"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="16"
Height="16"
Stretch="Uniform"
Source="{DynamicResource Fluent.Ribbon.Images.Checked}"
Visibility="Collapsed"
SnapsToDevicePixels="True" />
<TextBlock x:Name="gestureTextBlock"
Text="{TemplateBinding InputGestureText}"
Width="Auto"
Expand Down

0 comments on commit 3052938

Please sign in to comment.