fix Checkbox null content behavior, and icon stretch in menu.

This commit is contained in:
rabbitism
2023-02-10 12:05:54 +08:00
parent 0797e2e5df
commit 7cababb140
3 changed files with 12 additions and 6 deletions

View File

@@ -132,15 +132,17 @@
<Viewbox
Name="PART_IconPresenter"
Width="12"
Height="12"
Width="16"
Height="16"
Margin="{DynamicResource MenuItemIconMargin}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsVisible="False"
Stretch="UniformToFill"
StretchDirection="DownOnly">
<ContentPresenter Content="{TemplateBinding Icon}" />
Stretch="Uniform">
<ContentPresenter
HorizontalAlignment="Center"
VerticalAlignment="Center"
Content="{TemplateBinding Icon}" />
</Viewbox>
<ContentPresenter