|
4 | 4 | xmlns:local="clr-namespace:MaterialDesignThemes.Wpf"
|
5 | 5 | xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters"
|
6 | 6 | xmlns:controlzEx="clr-namespace:ControlzEx"
|
7 |
| - xmlns:sys="clr-namespace:System;assembly=mscorlib" |
8 |
| - xmlns:transitions="clr-namespace:MaterialDesignThemes.Wpf.Transitions"> |
| 7 | + xmlns:transitions="clr-namespace:MaterialDesignThemes.Wpf.Transitions" |
| 8 | + xmlns:system="clr-namespace:System;assembly=mscorlib"> |
9 | 9 |
|
10 | 10 | <ResourceDictionary.MergedDictionaries>
|
11 | 11 | <!-- we only bring in the dictionaries for controls which were "invented"
|
|
34 | 34 |
|
35 | 35 | <converters:BrushToRadialGradientBrushConverter x:Key="BrushToRadialGradientBrushConverter" />
|
36 | 36 | <converters:DrawerOffsetConverter x:Key="DrawerOffsetConverter" />
|
37 |
| - <sys:Boolean x:Key="True">True</sys:Boolean> |
| 37 | + |
| 38 | + <system:Boolean x:Key="True">True</system:Boolean> |
38 | 39 |
|
39 | 40 | <Style TargetType="{x:Type local:Ripple}">
|
40 | 41 | <Setter Property="RecognizesAccessKey" Value="True" />
|
|
657 | 658 | <Style TargetType="{x:Type local:DrawerHost}">
|
658 | 659 | <Setter Property="local:ShadowAssist.ShadowDepth" Value="Depth3" />
|
659 | 660 | <Setter Property="LeftDrawerBackground" Value="{DynamicResource MaterialDesignPaper}" />
|
660 |
| - <Setter Property="RightDrawerBackground" Value="{DynamicResource MaterialDesignPaper}" /> |
661 | 661 | <Setter Property="IsTabStop" Value="False" />
|
662 | 662 | <Setter Property="Template">
|
663 | 663 | <Setter.Value>
|
664 | 664 | <ControlTemplate TargetType="{x:Type local:DrawerHost}">
|
665 |
| - <Grid> |
| 665 | + <Grid x:Name="RootGrid"> |
666 | 666 | <VisualStateManager.VisualStateGroups>
|
667 | 667 | <VisualStateGroup x:Name="AllDrawers">
|
668 | 668 | <VisualStateGroup.Transitions>
|
|
680 | 680 | <EasingDoubleKeyFrame.EasingFunction>
|
681 | 681 | <SineEase EasingMode="EaseOut" />
|
682 | 682 | </EasingDoubleKeyFrame.EasingFunction>
|
683 |
| - </EasingDoubleKeyFrame> |
| 683 | + </EasingDoubleKeyFrame> |
684 | 684 | </DoubleAnimationUsingKeyFrames>
|
685 | 685 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCover"
|
686 | 686 | Storyboard.TargetProperty="Background">
|
|
731 | 731 | <VisualStateGroup.Transitions>
|
732 | 732 | <VisualTransition From="LeftDrawerClosed" To="LeftDrawerOpen">
|
733 | 733 | <Storyboard>
|
734 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform_"> |
| 734 | + <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform"> |
735 | 735 | <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.4">
|
736 | 736 | <EasingDoubleKeyFrame.EasingFunction>
|
737 | 737 | <SineEase EasingMode="EaseOut" />
|
|
759 | 759 | </Storyboard>
|
760 | 760 | </VisualTransition>
|
761 | 761 | </VisualStateGroup.Transitions>
|
| 762 | + <VisualState x:Name="LeftDrawerOpen"> |
| 763 | + <Storyboard> |
| 764 | + <DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0" /> |
| 765 | + <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" To="0" Duration="0"/> |
| 766 | + </Storyboard> |
| 767 | + </VisualState> |
| 768 | + <VisualState x:Name="LeftDrawerClosed"> |
| 769 | + <Storyboard> |
| 770 | + <DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="0" Duration="0" /> |
| 771 | + <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" Duration="0"/> |
| 772 | + </Storyboard> |
| 773 | + </VisualState> |
762 | 774 | </VisualStateGroup>
|
763 | 775 | <VisualStateGroup x:Name="RightDrawer">
|
764 | 776 | <VisualStateGroup.Transitions>
|
765 |
| - <!-- |
766 | 777 | <VisualTransition From="RightDrawerClosed" To="RightDrawerOpen">
|
767 | 778 | <Storyboard>
|
768 | 779 | <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="RightDrawerTranslateTransform">
|
|
792 | 803 | </DoubleAnimationUsingKeyFrames>
|
793 | 804 | </Storyboard>
|
794 | 805 | </VisualTransition>
|
795 |
| - --> |
796 | 806 | </VisualStateGroup.Transitions>
|
797 |
| - <VisualState x:Name="LeftDrawerOpen"> |
798 |
| - <Storyboard> |
799 |
| - <DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0" /> |
800 |
| - <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" To="0" Duration="0"/> |
801 |
| - </Storyboard> |
802 |
| - </VisualState> |
803 |
| - <VisualState x:Name="LeftDrawerClosed"> |
804 |
| - <Storyboard> |
805 |
| - <DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="0" Duration="0" /> |
806 |
| - <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" Duration="0"/> |
807 |
| - </Storyboard> |
808 |
| - </VisualState> |
809 |
| - <!-- |
810 | 807 | <VisualState x:Name="RightDrawerOpen">
|
811 | 808 | <Storyboard>
|
812 | 809 | <DoubleAnimation Storyboard.TargetName="RightDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0" />
|
|
819 | 816 | <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="RightDrawerTranslateTransform" Duration="0"/>
|
820 | 817 | </Storyboard>
|
821 | 818 | </VisualState>
|
822 |
| - --> |
823 | 819 | </VisualStateGroup>
|
824 | 820 | </VisualStateManager.VisualStateGroups>
|
825 | 821 | <AdornerDecorator>
|
826 | 822 | <ContentPresenter
|
827 |
| - x:Name="ContentPresenter" |
828 |
| - Opacity="1" |
829 |
| - Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" /> |
| 823 | + x:Name="ContentPresenter" Opacity="1" |
| 824 | + Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" /> |
830 | 825 | </AdornerDecorator>
|
831 | 826 | <Grid x:Name="PART_ContentCover" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" />
|
832 | 827 | <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
|
|
846 | 841 | </AdornerDecorator>
|
847 | 842 | <ContentPresenter Content="{TemplateBinding LeftDrawerContent}" ContentTemplate="{TemplateBinding LeftDrawerContentTemplate}" ContentStringFormat="{TemplateBinding LeftDrawerContentStringFormat}" />
|
848 | 843 | </Grid>
|
849 |
| - <!-- |
850 | 844 | <Grid VerticalAlignment="Stretch" HorizontalAlignment="Right">
|
851 | 845 | <Grid.RenderTransform>
|
852 | 846 | <TranslateTransform x:Name="RightDrawerTranslateTransform"
|
|
863 | 857 | </Border>
|
864 | 858 | </AdornerDecorator>
|
865 | 859 | <ContentPresenter Content="{TemplateBinding RightDrawerContent}" ContentTemplate="{TemplateBinding RightDrawerContentTemplate}" ContentStringFormat="{TemplateBinding RightDrawerContentStringFormat}" />
|
866 |
| - </Grid> |
867 |
| - --> |
| 860 | + </Grid> |
868 | 861 | </Grid>
|
869 | 862 | </ControlTemplate>
|
870 | 863 | </Setter.Value>
|
871 | 864 | </Setter>
|
872 |
| - </Style> |
| 865 | + </Style> |
873 | 866 |
|
874 | 867 | <Style TargetType="{x:Type local:PackIcon}">
|
875 | 868 | <Setter Property="Height" Value="16" />
|
|
0 commit comments