Create a .NET MAUI Menu Bar on Windows and Mac with Ease

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 39

  • @EdJanuskis
    @EdJanuskis 11 หลายเดือนก่อน +3

    Could you please have a video explain how to enable and disable flyout menu item(s)? this is regarding business app where not all users can have access to all options in the menu. for example user must login to app to have items enabled.

  • @philippelhaus
    @philippelhaus ปีที่แล้ว +2

    Glad for this, real Microsoft MVP 👌🏻👍🏻

  • @Meisme1834
    @Meisme1834 ปีที่แล้ว

    Thanks for your efforts on all these videos! Specifically, thanks for showing how to implement the menu app wide, instead of duplicating the code on each page. Super helpful!
    Two thoughts on potentially helpful additions to this particular issue...
    Where should one look to figure out how to databind for running navigation commands when using app shell?
    Can one make contextual menu additions based on the page where they are?
    Love your content!

  • @johnflare5925
    @johnflare5925 14 วันที่ผ่านมา

    The attachable property 'MenuBarItems' was not found in type 'ContentPage'.

  • @quantume7143
    @quantume7143 ปีที่แล้ว

    Thanks. That's cool! I want more Maui app development for windows in the future please :)

  • @mebtuabebe8428
    @mebtuabebe8428 ปีที่แล้ว +1

    That is really helpful. Thanks a lot James!

  • @stephenhauck
    @stephenhauck ปีที่แล้ว +2

    What happens when you run on a device like iOS and Android that don't have menus?
    Is the code simply optimized out ?
    Thanks

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว +1

      On iPadOS they will come up as keyboard shortcuts. On phone though nothing. Think of them as desktop enhancements

  • @ethab57
    @ethab57 10 หลายเดือนก่อน

    Is ther a way for the menu bar to not be a the top of the screen? What if I want it below a header?

  • @phillychannel394
    @phillychannel394 4 หลายเดือนก่อน

    How do I actually load a page when clicked a Menu item?

  • @JonGraf-b9g
    @JonGraf-b9g 10 หลายเดือนก่อน

    I am trying to figure out how to do the following: I want a button that in the Onclick it logs into identity server. Then it loads initial data based on the user authenticating. I can do that with async and wait. but the issue I have is I can not push status to the user about what data has been loaded because the callback does not seem to invoke the statehaschanged.
    please help.

  • @rogerp5816
    @rogerp5816 ปีที่แล้ว

    Is there a menu setup that can work across all platforms? I have a single page application I'm building, and I'd like it to have the exact same look and feel across all platforms. Is there a way of doing something like a hamburger menu that's always in the upper left-hand corner? I've done some windows development over the years and have always used the menu bar, however now I'm trying to branch out and have an app that will run on iOS, Android and Windows desktop.

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว

      Since .NET MAUI exposes native controls and android/iOS don’t have menu bars then they won’t show up there as they don’t really make sense on mobile. What you want is Shell fly out navigation. This is built in and default. You can set the type in your AppShell at the top. Add multiple items in there. If you open the coffee app sample that is what I do

  • @deckelmouck
    @deckelmouck ปีที่แล้ว

    hey @JamesMontemagno, seems to be a good feature. if you have an application with several pages, would you implement an interface to cover all commands on all pages and what, if you want to delete or add some menu item on some exclusive pages? how to handle this at best? shouldn't I put it the AppShell and split it up on every page? regards

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว

      Depends on your app. One of my app doesn’t have any navigation and all just tabs so that is nice since it is static. However I think most folks will have a menu builder and build for each page dynamically or add/remove as needed

    • @deckelmouck
      @deckelmouck ปีที่แล้ว

      @@JamesMontemagno thanks for your advice!

  • @ophura
    @ophura ปีที่แล้ว

    Hey James! First of all, I appreciate the effort you put into your content, really good stuff!
    Secondly, since you mentioned that such menu bar items would be in the very-top in a macOS build, could it possibly be implemented in Windows in such a way as well?
    I like the idea of taking full control over one's application, not to be a downer, but I feel like this would be such a waste of space in case it isn't possible...
    Virtual Studio for instance makes use of that area, Photoshop, too!
    And I'd really love not to desert that adorable spot!

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว

      It uses the native controls, if you maximize the app then yes it would be at the top :) A windows user would not expect bars randomly at the top of the OS just as Mac users would not think of the menus being inside the app.
      It all works exactly like VS/Photoshop, etc as I showed

    • @ophura
      @ophura ปีที่แล้ว

      :)

  • @mimo5515
    @mimo5515 ปีที่แล้ว

    Hey man. Thanks for the great videos.
    Are there going to be a straight forward video of how to use the InAppBilling plugin for MAUI?

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว +1

      It’s on my list

    • @mimo5515
      @mimo5515 ปีที่แล้ว +1

      @@JamesMontemagno
      I really can't wait
      I also think it'd be of major importance since currently it's the only one available for MAUI.
      Thx.

  • @metacapitalism5113
    @metacapitalism5113 ปีที่แล้ว

    What ViewModel does the Shell use?

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว +1

      I usually don't use one, but you could i guess... it handles naviation for you automatically mostly.

  • @nemanjarasic10
    @nemanjarasic10 ปีที่แล้ว

    Hi James, I saw your videos and it's clear that you are the master of maui.
    I have one question about local development. I have API on localhost path and I'm using a Microsoft.Datasync.Client nuget package to pull and push data from API but the problem is I can't touch API from Android Emulator, I received a error like: "System.Net.WebException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found"
    Do you have something for me how I can resolve this?

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว

      Checkout learn.microsoft.com/en-us/dotnet/maui/data-cloud/local-web-services best is to turn off http or use dev tunnels

  • @GiuseppeGaetanoSabatelli
    @GiuseppeGaetanoSabatelli ปีที่แล้ว

    This is pretty neat, but first I'm trying to figure out how you set the color of your title bar from plain gray to black, added the "MyCoffeeApp" text, and added the hamburger menu button.
    Did you have a tutorial that covers that? I've searched high and low and there doesn't seem to be any documentation on Windows title bars, and every forum post everywhere seems to think it's impossible, yet here I stumble across your video and you have a modified title bar with no explanation. ...lol

  • @UwU-OuO-TvT
    @UwU-OuO-TvT ปีที่แล้ว

    Hi James! I have a question: how to emulate windows system on visual studio for mac? Yeah i know the correct answer. Just turn on my PC. But i just wanted to integrate all the existing platform

    • @JamesMontemagno
      @JamesMontemagno  ปีที่แล้ว

      You would have to use a Windows VM on macOS to develop for Windows. You can then have you machine communicate with each other for iOS and Android but windows on windows and mac on mac

    • @UwU-OuO-TvT
      @UwU-OuO-TvT ปีที่แล้ว

      @@JamesMontemagno thank you so much!

  • @deaasaleh3613
    @deaasaleh3613 ปีที่แล้ว +1

    Great 👍

  • @enderfatihtasar8905
    @enderfatihtasar8905 ปีที่แล้ว

    Thanks 🙏

  • @emilie1977
    @emilie1977 ปีที่แล้ว

    thank you!