style<ContextMenu>: Decrease opacity of ContextMenu's DropShadowEffect

This commit is contained in:
leo 2021-02-25 19:08:49 +08:00
parent f98ba79c09
commit 5239c396f8

View file

@ -18,11 +18,10 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContextMenu}">
<Grid RenderTransformOrigin="12,12">
<Grid>
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="12">
<Border.Effect>
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Color="Black"/>
<DropShadowEffect BlurRadius="8" ShadowDepth="0" Color="Black" Opacity=".6"/>
</Border.Effect>
</Border>
<StackPanel IsItemsHost="True" Margin="14" KeyboardNavigation.DirectionalNavigation="Cycle"/>
@ -72,7 +71,7 @@
<Grid>
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="12">
<Border.Effect>
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Color="Black"/>
<DropShadowEffect BlurRadius="8" ShadowDepth="0" Color="Black" Opacity=".6"/>
</Border.Effect>
</Border>