Skip to content

Commit 044df97

Browse files
authored
Merge pull request #600 from hvaring/DrawerHostFix
Fixed bug where DrawerHost didn't animate top and bottom drawer correctly
2 parents bcfdbfc + 1f19de0 commit 044df97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/Themes/Generic.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@
951951
</Grid>
952952
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Top"
953953
x:Name="PART_TopDrawer"
954-
Margin="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={x:Static Dock.Top}}"
954+
Margin="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={x:Static Dock.Top}}"
955955
Panel.ZIndex="{TemplateBinding TopDrawerZIndex}">
956956
<AdornerDecorator CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(local:ShadowAssist.CacheMode)}">
957957
<Border Effect="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(local:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}"
@@ -964,7 +964,7 @@
964964
</Grid>
965965
<Grid VerticalAlignment="Bottom" HorizontalAlignment="Stretch"
966966
x:Name="PART_BottomDrawer"
967-
Margin="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={x:Static Dock.Bottom}}"
967+
Margin="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight, Converter={StaticResource DrawerOffsetConverter}, ConverterParameter={x:Static Dock.Bottom}}"
968968
Panel.ZIndex="{TemplateBinding BottomDrawerZIndex}">
969969
<AdornerDecorator CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(local:ShadowAssist.CacheMode)}">
970970
<Border Effect="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(local:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}"

0 commit comments

Comments
 (0)