You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add feature for #2865
- Implement the interface ICommandSource
- Handle Command binding change to hook or unhook command executable
- Listen to the new command stuff to enable or disable the HamburgerMenuItem
- New `MahApps.Metro.Styles.HamburgerMenu` key for the HamburgerMenu style
* Update 1.5.0.md
+ Set `Content` for `HamburgerMenu` only if one of the inner ListBox controls has a selected item.
18
18
+ New `HamburgerMenuHeaderTemplate` property to set a header right of the HamburgerMenu button. [@SilverDragon135](https://github.com/SilverDragon135)[#2917](https://github.com/MahApps/MahApps.Metro/pull/2917)
19
+
+ Implement the interface `ICommandSource` and handle Command binding change to hook or unhook command executable.
20
+
+ Add `MahApps.Metro.Styles.HamburgerMenu` style key to the HamburgerMenu.
19
21
- If `ShowInTaskbar = false`, when double click on the title bar of a minimized window, the window will be restored instead of maximized. [#2854](https://github.com/MahApps/MahApps.Metro/pull/2854)[@hausenism](https://github.com/hausenism)
- Don't overwrite cancellation for window close event [#2868](https://github.com/MahApps/MahApps.Metro/pull/2868)[@batzen](https://github.com/batzen)
Copy file name to clipboardexpand all lines: src/MahApps.Metro.Samples/MahApps.Metro.Demo/MahApps.Metro.Demo.Shared/ExampleViews/HamburgerMenuSample.xaml
Copy file name to clipboardexpand all lines: src/MahApps.Metro.Samples/MahApps.Metro.Demo/MahApps.Metro.Demo.Shared/ExampleViews/HamburgerMenuSample.xaml.cs
awaitthis.TryFindParent<MetroWindow>().ShowMessageAsync("",$"You clicked on {menuItem.Label} button");
31
36
}
32
37
}
38
+
39
+
// This class can be used to avoid the following error message
40
+
// System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=
41
+
// WPF doesn’t know which FrameworkElement to use to get the DataContext, because the HamburgerMenuItem doesn’t belong to the visual or logical tree of the HamburgerMenu.
42
+
publicclassBindingProxy:Freezable
43
+
{
44
+
// Using a DependencyProperty as the backing store for Data. This enables animation, styling, binding, etc...
0 commit comments