Skip to content

Commit 8fca463

Browse files
committed
Last fixes
Hide the shadow Border too via Opacity like the root.
1 parent d1cb941 commit 8fca463

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

MaterialDesignThemes.MahApps/Themes/MaterialDesignTheme.MahApps.Flyout.xaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@
127127
Value="0"
128128
x:Name="fadeOutFrame" />
129129
</DoubleAnimationUsingKeyFrames>
130+
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
131+
Storyboard.TargetProperty="(UIElement.Opacity)"
132+
Storyboard.TargetName="PART_Border">
133+
<SplineDoubleKeyFrame KeyTime="00:00:00.750"
134+
KeySpline="0.25,1,0.05,1"
135+
Value="0" />
136+
</DoubleAnimationUsingKeyFrames>
130137
</Storyboard>
131138
</VisualState>
132139
<VisualState x:Name="Show">
@@ -207,7 +214,8 @@
207214
<BitmapCache EnableClearType="True"
208215
SnapsToDevicePixels="False" />
209216
</AdornerDecorator.CacheMode>
210-
<Border Background="{TemplateBinding Background}"
217+
<Border x:Name="PART_Border"
218+
Background="{TemplateBinding Background}"
211219
Effect="{DynamicResource MaterialDesignShadowDepth5}" />
212220
</AdornerDecorator>
213221
<AdornerDecorator>

0 commit comments

Comments
 (0)