Skip to content
Discussion options

You must be logged in to vote

Hi @GuyMicciche, great question!

You can use the MainCommand of the NavigationBar to serve as the burger menu button for your app and manually toggle the IsPaneOpen property of your NavigationView when the MainCommand is clicked.

You can find more info on the MainCommand property of NavigationBar in this section of the NavigationBar docs

First thing you will want to do is to set the MainCommandMode of the NavigationBar to Action. This is explained in the docs here

After that, you can define your own custom AppBarButtton with a custom BitmapIcon as the Icon and add a handler for the Click event to do something like NavView.IsPaneOpen = !NavView.IsPaneOpen;.

I have created a small sample ap…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by francoistanguay
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@kazo0
Comment options

@kazo0
Comment options

@GuyMicciche
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants