|
732 | 732 | <VisualStateGroup.Transitions>
|
733 | 733 | <VisualTransition From="LeftDrawerClosed" To="LeftDrawerOpen">
|
734 | 734 | <Storyboard>
|
735 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform"> |
736 |
| - <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.4"> |
737 |
| - <EasingDoubleKeyFrame.EasingFunction> |
| 735 | + <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="LeftDrawerGrid"> |
| 736 | + <EasingThicknessKeyFrame Value="0" KeyTime="0:0:0.4"> |
| 737 | + <EasingThicknessKeyFrame.EasingFunction> |
738 | 738 | <SineEase EasingMode="EaseOut" />
|
739 |
| - </EasingDoubleKeyFrame.EasingFunction> |
740 |
| - </EasingDoubleKeyFrame> |
741 |
| - </DoubleAnimationUsingKeyFrames> |
| 739 | + </EasingThicknessKeyFrame.EasingFunction> |
| 740 | + </EasingThicknessKeyFrame> |
| 741 | + </ThicknessAnimationUsingKeyFrames> |
742 | 742 | <DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.04" />
|
743 | 743 | </Storyboard>
|
744 | 744 | </VisualTransition>
|
745 | 745 | <VisualTransition From="LeftDrawerOpen" To="LeftDrawerClosed">
|
746 | 746 | <Storyboard>
|
747 |
| - <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" Duration="0:0:0.4"> |
748 |
| - <DoubleAnimation.EasingFunction> |
| 747 | + <ThicknessAnimation Storyboard.TargetProperty="Margin" Storyboard.TargetName="LeftDrawerGrid" Duration="0:0:0.4"> |
| 748 | + <ThicknessAnimation.EasingFunction> |
749 | 749 | <SineEase EasingMode="EaseOut" />
|
750 |
| - </DoubleAnimation.EasingFunction> |
751 |
| - </DoubleAnimation> |
| 750 | + </ThicknessAnimation.EasingFunction> |
| 751 | + </ThicknessAnimation> |
752 | 752 | <DoubleAnimationUsingKeyFrames Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity">
|
753 | 753 | <EasingDoubleKeyFrame Value="1" KeyTime="0:0:0.36" />
|
754 | 754 | <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.4">
|
|
763 | 763 | <VisualState x:Name="LeftDrawerOpen">
|
764 | 764 | <Storyboard>
|
765 | 765 | <DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0" />
|
766 |
| - <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" To="0" Duration="0"/> |
| 766 | + <ThicknessAnimation Storyboard.TargetProperty="Margin" Storyboard.TargetName="LeftDrawerGrid" To="0" Duration="0"/> |
767 | 767 | </Storyboard>
|
768 | 768 | </VisualState>
|
769 | 769 | <VisualState x:Name="LeftDrawerClosed">
|
770 | 770 | <Storyboard>
|
771 | 771 | <DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="0" To="0" Duration="0" />
|
772 |
| - <DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" Duration="0"/> |
| 772 | + <ThicknessAnimation Storyboard.TargetProperty="Margin" Storyboard.TargetName="LeftDrawerGrid" Duration="0"/> |
773 | 773 | </Storyboard>
|
774 | 774 | </VisualState>
|
775 | 775 | </VisualStateGroup>
|
|
825 | 825 | Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentStringFormat="{TemplateBinding ContentStringFormat}" />
|
826 | 826 | </AdornerDecorator>
|
827 | 827 | <Grid x:Name="PART_ContentCover" Background="{x:Null}" Opacity="0" IsHitTestVisible="False" Focusable="False" />
|
828 |
| - <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch"> |
829 |
| - <Grid.RenderTransform> |
830 |
| - <TranslateTransform x:Name="LeftDrawerTranslateTransform" |
831 |
| - X="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Grid}, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}}" /> |
832 |
| - </Grid.RenderTransform> |
| 828 | + <Grid HorizontalAlignment="Left" VerticalAlignment="Stretch" |
| 829 | + x:Name="LeftDrawerGrid" |
| 830 | + Margin="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={x:Static Dock.Left}}"> |
833 | 831 | <AdornerDecorator>
|
834 | 832 | <AdornerDecorator.CacheMode>
|
835 | 833 | <BitmapCache EnableClearType="True" SnapsToDevicePixels="True"/>
|
|
844 | 842 | </Grid>
|
845 | 843 | <Grid VerticalAlignment="Stretch" HorizontalAlignment="Right"
|
846 | 844 | x:Name="RightDrawerGrid"
|
847 |
| - Margin="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={StaticResource True}}"> |
| 845 | + Margin="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={x:Static Dock.Right}}"> |
848 | 846 | <AdornerDecorator>
|
849 | 847 | <AdornerDecorator.CacheMode>
|
850 | 848 | <BitmapCache EnableClearType="True" SnapsToDevicePixels="True"/>
|
|
0 commit comments