Skip to content

Commit 85d6cf6

Browse files
committed
Fix DialogHost and DrawerHost background fadeout
Changed the grid background property for dialogs and drawers to black
1 parent 31e0dc6 commit 85d6cf6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MaterialDesignThemes.Wpf/Themes/Generic.xaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,12 +650,11 @@
650650
x:Name="ContentPresenter" Opacity="1"
651651
Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" />
652652
</AdornerDecorator>
653-
<Grid x:Name="PART_ContentCoverGrid" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" />
653+
<Grid x:Name="PART_ContentCoverGrid" Background="Black" Opacity="0" IsHitTestVisible="False" Focusable="False" />
654654
</Grid>
655655
<ControlTemplate.Triggers>
656656
<Trigger Property="IsOpen" Value="True">
657657
<Setter TargetName="ContentPresenter" Property="IsEnabled" Value="False" />
658-
<Setter TargetName="PART_ContentCoverGrid" Property="Background" Value="Black" />
659658
<Setter TargetName="PART_ContentCoverGrid" Property="IsHitTestVisible" Value="True" />
660659
</Trigger>
661660
</ControlTemplate.Triggers>
@@ -929,7 +928,7 @@
929928
x:Name="ContentPresenter" Opacity="1"
930929
Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" />
931930
</AdornerDecorator>
932-
<Grid x:Name="PART_ContentCover" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" />
931+
<Grid x:Name="PART_ContentCover" Background="Black" Opacity="0" IsHitTestVisible="False" Focusable="False" />
933932
<Grid>
934933
<Grid HorizontalAlignment="Left" VerticalAlignment="Stretch"
935934
x:Name="PART_LeftDrawer"

0 commit comments

Comments
 (0)