Skip to content

Commit 4a949d6

Browse files
committed
When opening the left drawer by clicking th eexplor button it was leaving the content cover displayed after the drawer was closed. Specifying Dock.Left only causes the drawer host to attempt to open th eleft side and properly disappear once it is closed.
1 parent 837c923 commit 4a949d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MainDemo.Wpf/Home.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
<StackPanel Grid.Column="1" Margin="24 0 0 0" VerticalAlignment="Center">
3232
<TextBlock Style="{StaticResource MaterialDesignDisplay1TextBlock}" TextWrapping="Wrap">Welcome to Material Design In XAML Toolkit</TextBlock>
3333
<Button Style="{StaticResource MaterialDesignFlatButton}"
34-
Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}">
34+
Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}"
35+
CommandParameter="{x:Static Dock.Left}">
3536
<StackPanel Orientation="Horizontal">
3637
<materialDesign:PackIcon Kind="Binoculars" />
3738
<TextBlock Margin="8 0 0 0">EXPLORE</TextBlock>

0 commit comments

Comments
 (0)