How to build Hamburger Menu? #17875
-
Seems like there are at least 2 ways on how to build hamburger menu. Which one is the recommended way? Is there a simple template that have navigation bar? Are there simple application (with best practive) that I can start with? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey @syaifulnizamyahya, Thanks for your question. Both options are viable, but it really depends on what you're building. Could you provide more details? I might be able to help with your decision. Generally speaking, I think the first link you shared is more suited for a mobile The second link you shared demonstrates how to build your app using Let me know if this helps or if you need further clarification. |
Beta Was this translation helpful? Give feedback.
-
All I want is to create a hamburger menu that is practical in all platform. As long as it works without issue, I'm fine. The reason I look into Uno is I want to develop multiplatform application without having to deal with platform specific intricacies (or at least reduce it as much as I can). I was looking for best practice in developing hamburger menu. I tried reading the docs but without real success. I tried Template Studio and MAUI App Accelerator and I find it much easier to start as it provide hamburger menu in the template itself. I would suggest Uno Platform to provide best practice to implement hamburger menu using MVUX and MVVM because, I'm unable to integrate MVUX to my application with any real success. So my question, in your opinion, what would you say is the best practice/approach to implement hamburger menu in Uno Platform using MVVM and .NET frame navigations? Any samples? Also, do you have any plans to add hamburger menu to the uno platform template? Thanks. |
Beta Was this translation helpful? Give feedback.
-
@syaifulnizamyahya did you ever implement this? Can you share an example? Thanks |
Beta Was this translation helpful? Give feedback.
@syaifulnizamyahya I see. I think the best approach is to use the
NavigationView
that I described above. You can also combine it with theNavigationBar
at the top.At the moment, we don't provide a template for this. However, feel free to open a feature request. In the meantime, you can check out this sample—it will be merged soon, but you can fetch the branch it’s on even now. This sample demonstrates various ways of navigating with the
NavigationView
/TabBar
and showcases the controls and how to use them properly. You can even use this solution as a starting point for your project by simply removing any parts you don't need. Let me know if the sample helps.In your comment, you mentioned: