Skip to content

Commit c2766ff

Browse files
committed
It's better to use the AdornerDecorators opacity property :-D
1 parent 8fca463 commit c2766ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,12 @@
209209
</VisualState>
210210
</VisualStateGroup>
211211
</VisualStateManager.VisualStateGroups>
212-
<AdornerDecorator>
212+
<AdornerDecorator x:Name="PART_Border">
213213
<AdornerDecorator.CacheMode>
214214
<BitmapCache EnableClearType="True"
215215
SnapsToDevicePixels="False" />
216216
</AdornerDecorator.CacheMode>
217-
<Border x:Name="PART_Border"
218-
Background="{TemplateBinding Background}"
217+
<Border Background="{TemplateBinding Background}"
219218
Effect="{DynamicResource MaterialDesignShadowDepth5}" />
220219
</AdornerDecorator>
221220
<AdornerDecorator>

0 commit comments

Comments
 (0)