Skip to content

Commit ae00bd2

Browse files
committed
drawer (currently left only) v1
1 parent 0f0372d commit ae00bd2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

MainDemo.Wpf/MainWindow.xaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Shadows.xaml" />
2020
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
2121
</ResourceDictionary.MergedDictionaries>
22-
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
2322

2423
<!-- data template used for the dialogs example, defines a View for a ViewModel of type DateTime -->
2524
<DataTemplate DataType="{x:Type system:DateTime}">
@@ -41,8 +40,7 @@
4140
HorizontalAlignment="Right" Margin="16"
4241
IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}" />
4342
<ListBox x:Name="DemoItemsListBox" Margin="0 16 0 16" SelectedIndex="0"
44-
PreviewMouseLeftButtonUp="UIElement_OnPreviewMouseLeftButtonUp"
45-
Visibility="{Binding ElementName=MenuToggleButton, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}">
43+
PreviewMouseLeftButtonUp="UIElement_OnPreviewMouseLeftButtonUp">
4644
<ListBox.ItemTemplate>
4745
<DataTemplate DataType="domain:DemoItem">
4846
<TextBlock Text="{Binding Name}" Margin="32 0 32 0" />

MaterialDesignThemes.Wpf/Themes/Generic.xaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@
609609
</VisualTransition>
610610
<VisualTransition From="AnyOpen" To="AllClosed">
611611
<Storyboard>
612-
<DoubleAnimation Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.5" />
613612
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_ContentCover" Storyboard.TargetProperty="Opacity">
614613
<EasingDoubleKeyFrame Value="0.56" KeyTime="0" />
615614
<EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.3">
@@ -661,12 +660,12 @@
661660
<Storyboard>
662661
<DoubleAnimation Storyboard.TargetProperty="X" Storyboard.TargetName="LeftDrawerTranslateTransform" Duration="0:0:0.4">
663662
<DoubleAnimation.EasingFunction>
664-
<SineEase EasingMode="EaseInOut" />
663+
<SineEase EasingMode="EaseOut" />
665664
</DoubleAnimation.EasingFunction>
666665
</DoubleAnimation>
667666
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="LeftDrawerShadow" Storyboard.TargetProperty="Opacity">
668-
<EasingDoubleKeyFrame Value="1" KeyTime="0:0:0.3" />
669-
<EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.31">
667+
<EasingDoubleKeyFrame Value="1" KeyTime="0:0:0.36" />
668+
<EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.4">
670669
<EasingDoubleKeyFrame.EasingFunction>
671670
<SineEase EasingMode="EaseOut" />
672671
</EasingDoubleKeyFrame.EasingFunction>

0 commit comments

Comments
 (0)