diff --git a/src/MahApps.Metro/Controls/HamburgerMenu/HamburgerMenu.Properties.cs b/src/MahApps.Metro/Controls/HamburgerMenu/HamburgerMenu.Properties.cs index b68fdd23f3..05f4eda559 100644 --- a/src/MahApps.Metro/Controls/HamburgerMenu/HamburgerMenu.Properties.cs +++ b/src/MahApps.Metro/Controls/HamburgerMenu/HamburgerMenu.Properties.cs @@ -49,6 +49,16 @@ private static void CompactPaneLengthPropertyChangedCallback(DependencyObject de } } + /// + /// Identifies the dependency property. + /// + public static readonly DependencyProperty PaneMarginProperty = DependencyProperty.Register(nameof(PaneMargin), typeof(Thickness), typeof(HamburgerMenu), new PropertyMetadata(null)); + + /// + /// Identifies the dependency property. + /// + public static readonly DependencyProperty PaneHeaderMarginProperty = DependencyProperty.Register(nameof(PaneHeaderMargin), typeof(Thickness), typeof(HamburgerMenu), new PropertyMetadata(null)); + /// /// Identifies the dependency property. /// @@ -170,6 +180,24 @@ public double CompactPaneLength set { SetValue(CompactPaneLengthProperty, value); } } + /// + /// Gets or sets the margin for the pane. + /// + public Thickness PaneMargin + { + get { return (Thickness)GetValue(PaneMarginProperty); } + set { SetValue(PaneMarginProperty, value); } + } + + /// + /// Gets or sets the margin for the pane header. + /// + public Thickness PaneHeaderMargin + { + get { return (Thickness)GetValue(PaneHeaderMarginProperty); } + set { SetValue(PaneHeaderMarginProperty, value); } + } + /// /// Gets or sets the Brush to apply to the background of the Pane area of the control. /// diff --git a/src/MahApps.Metro/Themes/HamburgerMenu.xaml b/src/MahApps.Metro/Themes/HamburgerMenu.xaml index 47ef63f6db..9bd7c1658c 100644 --- a/src/MahApps.Metro/Themes/HamburgerMenu.xaml +++ b/src/MahApps.Metro/Themes/HamburgerMenu.xaml @@ -28,6 +28,8 @@ + + diff --git a/src/MahApps.Metro/Themes/HamburgerMenuTemplate.xaml b/src/MahApps.Metro/Themes/HamburgerMenuTemplate.xaml index b347365963..fbf1ad5f68 100644 --- a/src/MahApps.Metro/Themes/HamburgerMenuTemplate.xaml +++ b/src/MahApps.Metro/Themes/HamburgerMenuTemplate.xaml @@ -326,7 +326,7 @@ PaneForeground="{TemplateBinding PaneForeground}" PanePlacement="{TemplateBinding PanePlacement}"> - + @@ -335,11 +335,20 @@ - +