|
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" |
7 | 8 | xmlns:transitions="clr-namespace:MaterialDesignThemes.Wpf.Transitions">
|
8 | 9 |
|
9 | 10 | <ResourceDictionary.MergedDictionaries>
|
|
33 | 34 |
|
34 | 35 | <converters:BrushToRadialGradientBrushConverter x:Key="BrushToRadialGradientBrushConverter" />
|
35 | 36 | <converters:DrawerOffsetConverter x:Key="DrawerOffsetConverter" />
|
| 37 | + <sys:Boolean x:Key="True">True</sys:Boolean> |
36 | 38 |
|
37 | 39 | <Style TargetType="{x:Type local:Ripple}">
|
38 | 40 | <Setter Property="RecognizesAccessKey" Value="True" />
|
|
655 | 657 | <Style TargetType="{x:Type local:DrawerHost}">
|
656 | 658 | <Setter Property="local:ShadowAssist.ShadowDepth" Value="Depth3" />
|
657 | 659 | <Setter Property="LeftDrawerBackground" Value="{DynamicResource MaterialDesignPaper}" />
|
| 660 | + <Setter Property="RightDrawerBackground" Value="{DynamicResource MaterialDesignPaper}" /> |
658 | 661 | <Setter Property="IsTabStop" Value="False" />
|
659 | 662 | <Setter Property="Template">
|
660 | 663 | <Setter.Value>
|
|
677 | 680 | <EasingDoubleKeyFrame.EasingFunction>
|
678 | 681 | <SineEase EasingMode="EaseOut" />
|
679 | 682 | </EasingDoubleKeyFrame.EasingFunction>
|
680 |
| - </EasingDoubleKeyFrame> |
| 683 | + </EasingDoubleKeyFrame> |
681 | 684 | </DoubleAnimationUsingKeyFrames>
|
682 | 685 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCover"
|
683 | 686 | Storyboard.TargetProperty="Background">
|
|
728 | 731 | <VisualStateGroup.Transitions>
|
729 | 732 | <VisualTransition From="LeftDrawerClosed" To="LeftDrawerOpen">
|
730 | 733 | <Storyboard>
|
731 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform"> |
| 734 | + <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform_"> |
732 | 735 | <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.4">
|
733 | 736 | <EasingDoubleKeyFrame.EasingFunction>
|
734 | 737 | <SineEase EasingMode="EaseOut" />
|
|
759 | 762 | </VisualStateGroup>
|
760 | 763 | <VisualStateGroup x:Name="RightDrawer">
|
761 | 764 | <VisualStateGroup.Transitions>
|
| 765 | + <!-- |
762 | 766 | <VisualTransition From="RightDrawerClosed" To="RightDrawerOpen">
|
763 | 767 | <Storyboard>
|
764 | 768 | <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="RightDrawerTranslateTransform">
|
|
788 | 792 | </DoubleAnimationUsingKeyFrames>
|
789 | 793 | </Storyboard>
|
790 | 794 | </VisualTransition>
|
| 795 | + --> |
791 | 796 | </VisualStateGroup.Transitions>
|
792 | 797 | <VisualState x:Name="LeftDrawerOpen">
|
793 | 798 | <Storyboard>
|
|
801 | 806 | <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" Duration="0"/>
|
802 | 807 | </Storyboard>
|
803 | 808 | </VisualState>
|
| 809 | + <!-- |
804 | 810 | <VisualState x:Name="RightDrawerOpen">
|
805 | 811 | <Storyboard>
|
806 | 812 | <DoubleAnimation Storyboard.TargetName="RightDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0" />
|
|
813 | 819 | <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="RightDrawerTranslateTransform" Duration="0"/>
|
814 | 820 | </Storyboard>
|
815 | 821 | </VisualState>
|
| 822 | + --> |
816 | 823 | </VisualStateGroup>
|
817 | 824 | </VisualStateManager.VisualStateGroups>
|
818 | 825 | <AdornerDecorator>
|
819 | 826 | <ContentPresenter
|
820 |
| - x:Name="ContentPresenter" Opacity="1" |
821 |
| - Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" /> |
| 827 | + x:Name="ContentPresenter" |
| 828 | + Opacity="1" |
| 829 | + Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" /> |
822 | 830 | </AdornerDecorator>
|
823 | 831 | <Grid x:Name="PART_ContentCover" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" />
|
824 | 832 | <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
|
|
838 | 846 | </AdornerDecorator>
|
839 | 847 | <ContentPresenter Content="{TemplateBinding LeftDrawerContent}" ContentTemplate="{TemplateBinding LeftDrawerContentTemplate}" ContentStringFormat="{TemplateBinding LeftDrawerContentStringFormat}" />
|
840 | 848 | </Grid>
|
841 |
| - <Grid HorizontalAlignment="Right" VerticalAlignment="Stretch"> |
| 849 | + <!-- |
| 850 | + <Grid VerticalAlignment="Stretch" HorizontalAlignment="Right"> |
842 | 851 | <Grid.RenderTransform>
|
843 | 852 | <TranslateTransform x:Name="RightDrawerTranslateTransform"
|
844 |
| - X="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Grid}, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}}" /> |
| 853 | + X="{Binding ElementName=RootGrid, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={StaticResource True}}" /> |
845 | 854 | </Grid.RenderTransform>
|
846 | 855 | <AdornerDecorator>
|
847 | 856 | <AdornerDecorator.CacheMode>
|
|
855 | 864 | </AdornerDecorator>
|
856 | 865 | <ContentPresenter Content="{TemplateBinding RightDrawerContent}" ContentTemplate="{TemplateBinding RightDrawerContentTemplate}" ContentStringFormat="{TemplateBinding RightDrawerContentStringFormat}" />
|
857 | 866 | </Grid>
|
| 867 | + --> |
858 | 868 | </Grid>
|
859 | 869 | </ControlTemplate>
|
860 | 870 | </Setter.Value>
|
|
0 commit comments