Question about HamburgerMenu #4074
-
Hi there, I want to use the HamburgerMenu but not its content. That is I want to use ICommands in the menu items and the underlying ViewModel to perform certain commands (e.g. navigating the main part of the window to a different view) I am using Prism's Regionmanager for views navigation, and thus I do not want to put the view(model)s in the HamburgerMenu's Content. The problem is that I cannot manage to get rid of the (now empty) content part of the HamburgerMenu in my window. If it is expanded, it shows the command labels, but if it is collapsed, there is just an empty space. I am getting nuts, but I find no property or whatever to set the content part width to 0 without ruining the expansion/collapsing of the HamburgerMenu. Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I still don't get your point why you don't want to use the If this is not what you like to do you can also use the Happy coding |
Beta Was this translation helpful? Give feedback.
Hi @markusstephany
I still don't get your point why you don't want to use the
HamburgerMenu.Content
to hold your content. It can by anything like any otherContentControl
so there is no need to use the items content.If this is not what you like to do you can also use the
SplitView
to build your ownHamburgerMenu
-like control. I have an example here:MahApps/MahApps.Metro.IconPacks#232 (comment)
Happy coding
Tim