Skip to content

Commit 364e427

Browse files
authored
Fix submenus of top-level MenuItems pushed up by 16 pixels (#2301)
1 parent 934b2d1 commit 364e427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Menu.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@
207207
IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}"
208208
PopupAnimation="Slide"
209209
Placement="Bottom"
210-
VerticalOffset="-16"
211-
CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(wpf:ShadowAssist.CacheMode)}">
210+
CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(wpf:ShadowAssist.CacheMode)}">
212211
<Border x:Name="SubMenuBorder"
213212
Background="{Binding Path=Background, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=MenuBase}}"
214213
Effect="{DynamicResource MaterialDesignShadowDepth1}"
@@ -239,6 +238,7 @@
239238
<Trigger Property="Role" Value="SubmenuHeader">
240239
<Setter TargetName="SubBlock" Property="Visibility" Value="Visible" />
241240
<Setter TargetName="PART_Popup" Property="Placement" Value="Right" />
241+
<Setter TargetName="PART_Popup" Property="VerticalOffset" Value="-16" />
242242
<Setter Property="Height" Value="32"/>
243243
<Setter TargetName="BoldHeaderPresenter" Property="Visibility" Value="Collapsed"/>
244244
</Trigger>

0 commit comments

Comments
 (0)