-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
The HamburgerMenu is designed for Windows Metro theme. But lacks the ability to customise (i guess themes it up) for MaterialDesign.
For example, MaterialDesign's Navigation Drawer uses a separate colour for the hamburger menu button and the menu items
Looking at
MahApps.Metro/src/MahApps.Metro/Themes/HamburgerMenuTemplate.xaml
Lines 395 to 408 in 17c935c
<Button x:Name="HamburgerButton" | |
Width="{TemplateBinding HamburgerWidth}" | |
Height="{TemplateBinding HamburgerHeight}" | |
Margin="0 0 0 8" | |
Padding="{TemplateBinding HamburgerMargin}" | |
HorizontalAlignment="Left" | |
VerticalAlignment="Top" | |
AutomationProperties.Name="Main button" | |
ContentTemplate="{TemplateBinding HamburgerMenuTemplate}" | |
Foreground="{TemplateBinding PaneForeground}" | |
IsTabStop="{TemplateBinding IsTabStop}" | |
Style="{StaticResource HamburgerButtonStyle}" | |
TabIndex="0" | |
Visibility="{TemplateBinding HamburgerVisibility}" /> |
Ideally, i would like to override or derive HamburgerButtonStyle
to assign a custom background colour (to match the toolbar).
Could also use this as an opportunity for the other staticly linked resources in the HamBurgerMenu as well for further customisations.