No More Magic String Navigation in .NET MAUI Shell with this Plugin!

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

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

  • @jfversluis
    @jfversluis  ปีที่แล้ว +3

    Handy or no? Have you been using Shell already? I go deeper into it in my .NET MAUI crash course as well: th-cam.com/video/pBh5SXVSwXw/w-d-xo.html
    Looking for Julian's blog post? You can find that right here: blog.ewers-peters.de/introducing-route-generator-for-net

  • @simonmardine6414
    @simonmardine6414 11 หลายเดือนก่อน +1

    Super cool feature 😮❤

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

    Hey! Lovely to see more MAUI videos out there. The easier it is for newer people to get into maui, the better. That being said, would you ever consider starting a series with "Advanced maui features"? That are for more intermediate Maui devs.

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

      Thanks! And what do you think should be in those videos?

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

      @@jfversluis I would like to see things like bluetooth, push notifications using azure hubs, could apis's and could database, could anything basicly. Maybe go over shiny, logging would be cool.

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

      @NicolaiPrang perfect I can work with that thanks!

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

      @@jfversluis ❤👌

  • @iamluh5265
    @iamluh5265 ปีที่แล้ว +3

    Wonderful Video. Can you please create a video on how to consume a Whatsapp API on .NET MAUI using already present Nuget Packages for Whatsapp APIs. Thanks

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

      I think the only WhatsApp API that is available is something that lives on a server and is for businesses, that has not much to do with .NET MAUI. So I don't think it's likely you'll find anything about that here soon.

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

    It would be great if you could make a video on how to use NFC with '.net MAUI', plug ins, read & write tags, host card emulation etc. Unfortunately there isn't really much information about it. Thanks a lot..

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

      Coming soon!

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

      @@jfversluis waiting for this ☺️

  • @星河亿光年
    @星河亿光年 ปีที่แล้ว +1

    very useful

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

      Glad you think so!

  • @fernandolopes3545
    @fernandolopes3545 8 หลายเดือนก่อน

    Nice!
    But I had a problem with it. On my app (.NET 7), I couldn't use the decorator on mauiprogram, it just wouldn't appear to me no matter what, so I had to uninstall the package and do it the old way (using a static class with the routes).
    I honestly have no idea why it happened

  • @MohamedAshraf-hd9iy
    @MohamedAshraf-hd9iy ปีที่แล้ว

    your videos are amazing I want to know how can I let data offline and online synced in maui

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

    i have problem gerald, How to change the background color of the dropdown menu ? i mean dialog

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

      That should be a question for Stack Overflow

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

    When i click to navigate from button the shell content didn't show not if i click from shell menu even i specify the same page

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

      Did you register the route and is that the same as what you’re trying to navigate to?

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

      @@jfversluis when i choice page1 from shell content in left menu works good .. but when navigate to page1 from click button (shell.current.... ("page1")) , The shell menu in left didn't appear on page1

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

    Hi Gerald. Just a short question, sending values/objects to the next page is the same (e.g. ?Name=Whatever) ? So this plugin is only for generating the routes right?

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

      That is correct! It won't help you with passing along values (yet?!)

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

      While it doesn't generate the navigation parameters for you (it doesn't know what you're going to do with it during runtime), you can use string formatting to pass them along, you could even create your own constant string identifiers to do something like this: await Shell.Current.GoToAsync($"/{Routes.SomeRoute}?{Params.MyParam}={SomeValue}");

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

    Why not just create your own static class with constants? The plugin does not solve the problem of nested routes.

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

      Explained in the linked blog post! And the plugin doesn’t solve the problem of nested routes _yet_

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

    The Subscribe button does not light up or this feature is not working for me yet. Any way nice tutorial

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

      Awww that's too bad! Hopefully it will come soon, it looked really cool. Thanks for checking! :D

  • @hosseinse4079
    @hosseinse4079 3 หลายเดือนก่อน

    sorry not not supported dash

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

    Ok cool but those AutoRoutes and ExtraRoute shouldn't be invented had the developer of the package simply scan the assembly for anything of type ContentPage.

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

      That will have impact on the startup time as it uses reflection which is costly

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

      @@jfversluis At compile time not run time, he's using code generation so why not scanning to build the code generated files.

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

      @@PeacefulMindss I meant with your proposed solution.

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

      The attributes are necessary, because pages are not required to inherit from ContentPage, there could be other base classes. AutoRoutes is used to figure out the root namespace, otherwise there would be too much guess work and it also makes the use of a source generator more explicit and gives the user more control over it. ExtraRoutes is used, because there are at least two issues with finding routes: 1) not all routes may abide by the naming convention like Gerald also demonstrated and 2) some routes might only be defined in XAML, e.g. by setting it up in a ShellContent control inside AppShell.xaml. Last but not least, the generator is framework-agnostic and not specifically designed for MAUI (although it was designed with MAUI projects in mind).

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

    Pro next video WhatsApp messaging app developing samples upload your TH-cam channel bro

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

      Sorry, I'm not sure if I understand what you mean 😅

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

      Online messaging

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

      Development sample using API next video bro

  • @developmentroselino
    @developmentroselino 6 หลายเดือนก่อน

    unreal feature, the G is for top G. helps reducing wrinkles on my fingers somehow jetbrain doesnt pick up the auto generator. Yep confirmed after opening VS2022 it does generate the g file

    • @jfversluis
      @jfversluis  6 หลายเดือนก่อน

      Haha thanks!