This Is How Simple Dependency Injection is in .NET MAUI

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 50

  • @thomaseslier5332
    @thomaseslier5332 2 роки тому +1

    Hi Gerald, Thank you for the video, short and useful

  • @finch9668
    @finch9668 3 роки тому +1

    Thank you Gerald! I'm eager to see more .NET MAUI tutorials!~~

    • @jfversluis
      @jfversluis  3 роки тому

      A lot is still changing and happening so there will be more, but might be a bit later! :)

  • @RVlietstra
    @RVlietstra 3 роки тому +5

    Hi Gerald, thanks for the videos. How do we get a DI viewmodels to a shell content page ? It seems shell pages do not support constructor injection. Thanks!

    • @jfversluis
      @jfversluis  3 роки тому +2

      I've checked with the rest of the team and at this point it's indeed not possible. Something that is thought about and might come later!

  • @GellClan
    @GellClan 3 роки тому +1

    Very good video, thanks. I'm really excited to see what else is coming new in .NET MAUI

    • @jfversluis
      @jfversluis  3 роки тому +1

      Thanks Alex, appreciate it! Yeah things like these really take away the first barriers of starting with mobile development. Learn only what is really important. Hope we get to implement more of these things!

  • @jwj4535
    @jwj4535 3 роки тому

    Hello Gerald, first of all, thank you again for the job you do, I am happy to see that the channel is growing. I wanted to ask you if there is any way to set the camera to 9:16 while using it, and to add a usage timer at the same time.
    In other words, is there any way to make the camera (using Xamarin Forms) behave in a similar way to how it does using Instagram Reels, youtube shorts, Tik Tok videos...

  • @oleg_lysiak
    @oleg_lysiak 3 роки тому +1

    Great video!

  • @michaelrogers6935
    @michaelrogers6935 Рік тому

    You referenced an earlier video where you talk about host builders -- can you provide a link to that? Google's not being helpful (and it's too new for ChatGPT)

    • @jfversluis
      @jfversluis  Рік тому +1

      Host builders aren’t very new especially when used with ASP.NET. This might be helpful: thewissen.io/adopting-the-generic-host/

  • @tony2-t
    @tony2-t 3 роки тому

    this was super helpful

    • @jfversluis
      @jfversluis  3 роки тому

      Great! Glad you think so! Thanks!

  • @michelchaghoury870
    @michelchaghoury870 3 роки тому +1

    gr8 vid like always, i wanna ask u if i am building an app with MAUI and on mobile screen i want an item to take the size of the entire row but if i have a bigger screen like a pc or a laptop or tables i want that item to no longer take the size of the entire row instead to take the size of a col and then have more that one item on the same row, can u please show us how to make responsive screen designs with MAUI to have a good ui/ui on multi sized screens. and pleaseeeee keeep going i am learning a lot from u

    • @mampary
      @mampary 3 роки тому

      VisualStateManager is your friend

  • @juliandormon7536
    @juliandormon7536 3 роки тому

    For the love of G-d, can you please make a tutorial on how to change the header bar colors of the WinUI and other shells in Maui Blazor? There is very little documentation on this. CommandBarBackgroundColor, etc? Thank you!

    • @jfversluis
      @jfversluis  3 роки тому

      Hm not sure what you mean?

  • @maxborrmann5663
    @maxborrmann5663 2 роки тому

    is it possible to inject viewmodels into custom controls/ contentviews?

    • @jfversluis
      @jfversluis  2 роки тому +1

      I would think so yes

    • @maxborrmann5663
      @maxborrmann5663 2 роки тому

      @@jfversluis How does that work? I get a XAML exception that there is no parameterless constructor when I try to do that. This would be of great help since my Page or Page ViewModels would not have to know about every control in the page anymore.

  • @r.gopalakrishnan6926
    @r.gopalakrishnan6926 3 роки тому

    Awesome 👌

  • @alexmidnayt159
    @alexmidnayt159 3 роки тому

    Hi, Gerald. Why are you write like - Message{get;} = " ..."? is not simple to do like Message => " ..."?

    • @jfversluis
      @jfversluis  3 роки тому

      Het Alex! Watch out with that one because they do very different things! The { get; } = … sets the initial value. With => it will execute each time and give you a new instance of the object. Try it with a GUID and you’ll see

  • @vinothswami4526
    @vinothswami4526 11 місяців тому

    Hi Gerald, why is the splash screen not working on windows. Please advise

    • @jfversluis
      @jfversluis  11 місяців тому

      A splash screen is not very typical on desktop and is not available unless you implement something for it yourself

    • @vinothswami4526
      @vinothswami4526 11 місяців тому

      @@jfversluis so I should go for a view with a delay time right?

  • @mapanjwani
    @mapanjwani Рік тому

    Hi, how are you? Can you please tell me how can i use ConsumerIrManager service in .net maui? I couldn't find any info regarding this. Thanks

    • @jfversluis
      @jfversluis  Рік тому

      Either work with #if ANDROID sections or add the code for this in the Platforms/Android folder

    • @mapanjwani
      @mapanjwani Рік тому

      @@jfversluis Thanks for the reply. How to use #if ANDROID section?

    • @jfversluis
      @jfversluis  Рік тому +1

      @@mapanjwani learn.microsoft.com/dotnet/maui/platform-integration/invoke-platform-code

    • @mapanjwani
      @mapanjwani Рік тому

      Great , thanks

  • @devates
    @devates 2 роки тому

    Thank you.

  • @argonjs
    @argonjs 3 роки тому +1

    Hi Gerald. Awesome video as always. Any update regarding Apple M1 vs Visual studio for mac?

    • @jfversluis
      @jfversluis  3 роки тому

      What update are you looking for?

    • @argonjs
      @argonjs 3 роки тому

      @@jfversluis Is it now stable to move from intel to m1 completely

    • @jfversluis
      @jfversluis  3 роки тому +1

      @@argonjs Ive been working with it since day 1, so I would say yes :)

    • @argonjs
      @argonjs 3 роки тому

      @@jfversluis Oh nice.. Since most of your videos on windows i thought still m1 is not stable for the development.. Thanks :)

    • @jfversluis
      @jfversluis  3 роки тому +1

      @@argonjs Nope! That is just because working with .NET MAUI is better supported on Visual Studio for Windows at the moment. Whenever I can I will switch back to Mac!

  • @adiguzelburak
    @adiguzelburak 3 роки тому

    Hi Gerald, I need your help. I would like to do where i tapped on the device, i need to know X,Y location of tapped position. I couldn't find any where. could you help me please? . Thank You

    • @jfversluis
      @jfversluis  3 роки тому +1

      Have you looked at the MR.Gestures library? I think it can do that, it is paid though, but it's the easiest. Else you will have to go write custom renderers to do it

    • @adiguzelburak
      @adiguzelburak 3 роки тому

      @@jfversluis thanks Gerald🙂

  • @egvijayanand
    @egvijayanand 3 роки тому

    Would like to see the implementation with Microsoft.Extensions framework.

    • @jfversluis
      @jfversluis  3 роки тому

      That’s what this is 😄

    • @egvijayanand
      @egvijayanand 3 роки тому

      @@jfversluis Oops, many videos on DI, watching it back and forth, added the comment on this video. BTW, concise explanation 👏👏👏

    • @jfversluis
      @jfversluis  3 роки тому

      Thank you!