Correct native Android navigation #16218
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @GuyMicciche, great question! You can use the You can find more info on the First thing you will want to do is to set the After that, you can define your own custom I have created a small sample app that achieves this that you can find here: https://github.com/kazo0/NavApp You'll also want to disable the default burger toggle button from the NavView by setting You can see what it looks like on iOS/Android here: |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for this example! I will compare it to my current setup and make the necessary changes! |
Beta Was this translation helpful? Give feedback.
-
@kazo0 What software you use to make the GIFs? |
Beta Was this translation helpful? Give feedback.
Hi @GuyMicciche, great question!
You can use the
MainCommand
of theNavigationBar
to serve as the burger menu button for your app and manually toggle theIsPaneOpen
property of yourNavigationView
when theMainCommand
is clicked.You can find more info on the
MainCommand
property ofNavigationBar
in this section of theNavigationBar
docsFirst thing you will want to do is to set the
MainCommandMode
of theNavigationBar
toAction
. This is explained in the docs hereAfter that, you can define your own custom
AppBarButtton
with a customBitmapIcon
as theIcon
and add a handler for theClick
event to do something likeNavView.IsPaneOpen = !NavView.IsPaneOpen;
.I have created a small sample ap…