|
632 | 632 | x:Name="ContentPresenter" Opacity="1"
|
633 | 633 | Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" />
|
634 | 634 | </AdornerDecorator>
|
635 |
| - <Grid x:Name="PART_ContentCoverGrid" Background="Black" Opacity="0" IsHitTestVisible="False" Focusable="False" /> |
| 635 | + <Grid x:Name="PART_ContentCoverGrid" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" /> |
636 | 636 | </Grid>
|
637 | 637 | <ControlTemplate.Triggers>
|
638 | 638 | <Trigger Property="IsOpen" Value="True">
|
639 | 639 | <Setter TargetName="ContentPresenter" Property="IsEnabled" Value="False" />
|
| 640 | + <Setter TargetName="PART_ContentCoverGrid" Property="Background" Value="Black" /> |
640 | 641 | <Setter TargetName="PART_ContentCoverGrid" Property="IsHitTestVisible" Value="True" />
|
641 | 642 | </Trigger>
|
642 | 643 | </ControlTemplate.Triggers>
|
|
645 | 646 | </Setter>
|
646 | 647 | </Style>
|
647 | 648 |
|
| 649 | + <SolidColorBrush x:Key="BlackBackground" Color="Black" /> |
| 650 | + |
648 | 651 | <Style TargetType="{x:Type local:DrawerHost}">
|
649 | 652 | <Setter Property="local:ShadowAssist.ShadowDepth" Value="Depth3" />
|
650 | 653 | <Setter Property="LeftDrawerBackground" Value="{DynamicResource MaterialDesignPaper}" />
|
|
672 | 675 | </EasingDoubleKeyFrame.EasingFunction>
|
673 | 676 | </EasingDoubleKeyFrame>
|
674 | 677 | </DoubleAnimationUsingKeyFrames>
|
| 678 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCover" |
| 679 | + Storyboard.TargetProperty="Background"> |
| 680 | + <DiscreteObjectKeyFrame Value="{StaticResource BlackBackground}" KeyTime="0" /> |
| 681 | + </ObjectAnimationUsingKeyFrames> |
675 | 682 | </Storyboard>
|
676 | 683 | </VisualTransition>
|
677 | 684 | <VisualTransition From="AnyOpen" To="AllClosed">
|
|
697 | 704 | <BooleanAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="IsEnabled">
|
698 | 705 | <DiscreteBooleanKeyFrame Value="False" KeyTime="0" />
|
699 | 706 | </BooleanAnimationUsingKeyFrames>
|
| 707 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCover" |
| 708 | + Storyboard.TargetProperty="Background"> |
| 709 | + <DiscreteObjectKeyFrame Value="{StaticResource BlackBackground}" KeyTime="0" /> |
| 710 | + </ObjectAnimationUsingKeyFrames> |
700 | 711 | </Storyboard>
|
701 | 712 | </VisualState>
|
702 | 713 | <VisualState x:Name="AllClosed">
|
|
760 | 771 | x:Name="ContentPresenter" Opacity="1"
|
761 | 772 | Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" />
|
762 | 773 | </AdornerDecorator>
|
763 |
| - <Grid x:Name="PART_ContentCover" Background="Black" Opacity="0" IsHitTestVisible="False" Focusable="False" /> |
| 774 | + <Grid x:Name="PART_ContentCover" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" /> |
764 | 775 | <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
|
765 | 776 | <Grid.RenderTransform>
|
766 | 777 | <TranslateTransform x:Name="LeftDrawerTranslateTransform"
|
|
0 commit comments