Skip to content

Commit 387e577

Browse files
authored
Merge pull request #772 from cjvaughter/master
Fix DialogHost and DrawerHost background fadeout
2 parents a063c40 + 85d6cf6 commit 387e577

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
@@ -654,12 +654,11 @@
654654
x:Name="ContentPresenter" Opacity="1"
655655
Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" />
656656
</AdornerDecorator>
657-
<Grid x:Name="PART_ContentCoverGrid" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" />
657+
<Grid x:Name="PART_ContentCoverGrid" Background="Black" Opacity="0" IsHitTestVisible="False" Focusable="False" />
658658
</Grid>
659659
<ControlTemplate.Triggers>
660660
<Trigger Property="IsOpen" Value="True">
661661
<Setter TargetName="ContentPresenter" Property="IsEnabled" Value="False" />
662-
<Setter TargetName="PART_ContentCoverGrid" Property="Background" Value="Black" />
663662
<Setter TargetName="PART_ContentCoverGrid" Property="IsHitTestVisible" Value="True" />
664663
</Trigger>
665664
</ControlTemplate.Triggers>
@@ -933,7 +932,7 @@
933932
x:Name="ContentPresenter" Opacity="1"
934933
Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" />
935934
</AdornerDecorator>
936-
<Grid x:Name="PART_ContentCover" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" />
935+
<Grid x:Name="PART_ContentCover" Background="Black" Opacity="0" IsHitTestVisible="False" Focusable="False" />
937936
<Grid>
938937
<Grid HorizontalAlignment="Left" VerticalAlignment="Stretch"
939938
x:Name="PART_LeftDrawer"

0 commit comments

Comments
 (0)