122

This Is How Simple Dependency Injection is in .NET MAUI

 2 years ago
source link: https://www.youtube.com/watch?v=wkgbvMlrMhU
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
#dotnetmaui #dependencyinjection #dotnet6

This Is How Simple Dependency Injection is in .NET MAUI

973 views
Premiered Oct 21, 2021

If you have been working with dependency injection in other .NET solutions like ASP.NET, this should look pretty familiar! In this video we will learn how to use dependency injection in your .NET MAUI app. And also, a little pro-tip on how to anticipate with your Xamarin app... Tune in!

💝 Join this channel to get access to perks: https://www.youtube.com/channel/Geral...

🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVerslui...

🔗 Links Sample code repo: https://github.com/jfversluis/MauiDep...

Dependency Injection for Absolute Beginners Video: https://www.youtube.com/watch?v=tTJet... Dependency Injection Playlist: https://www.youtube.com/watch?v=tTJet...

⏱ Timestamps 00:00 - Intro 00:08 - Sample App Outline 01:05 - Generic Host Builder in .NET MAUI 02:18 - Register Dependencies in Container 03:33 - Pro-Tip For Forms to .NET MAUI Conversio 04:06 - Using Constructor Injection 06:01 - Inject View Model 09:04 - Outro

🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD

🙋‍♂️ Also find my... Blog: https://blog.verslu.is Twitch: https://twitch.tv/jfversluis All the rest: https://jfversluis.dev

#dotnetmaui #dependencyinjection #dotnet6

Show lessShow more

23 Comments

Sort by
default-user=s48-c-k-c0x00ffffff-no-rj
Add a public comment...
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...

Read more 3 hours ago

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

11 hours ago


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK