Hello everyone and welcome to this new episode of the Avalonia UI series. In this video we'll dive into Dependency Injection and how to use it inside an Avalonia project.
► DI definitions:
Wikipedia: en.wikipedia.org/wiki/Depende...
Microsoft learn: learn.microsoft.com/en-us/dot...
► 3rd party DI containers:
DI in Avalonia using Lamar by Khalid Abuhakmeh: khalidabuhakmeh.com/dependenc...)
DI using Reactive Splat: www.reactiveui.net/docs/handb...
► DI using Microsoft packages
StackOverflow question: stackoverflow.com/questions/7...
Add MsExtensionsHostingSample sample project PR: github.com/AvaloniaUI/Avaloni...
Sample code to set up view locator using Microsoft DI from kekekeks: github.com/AvaloniaUI/Avaloni...
Reddit question: / microsoftextensionsdep...
► CommunityToolkit Experimental package
Experimental package PR: github.com/CommunityToolkit/L...
How to fetch packages from the community toolkit preview Nuget Feed: github.com/CommunityToolkit/W...
Example project to showcase the use of the CommunityToolkit Experimental package: github.com/stevemonaco/Avalon...
► GitHub repo: github.com/MammaMiaDev/avalon...
0:00 Intro
0:52 Dependency Injection
2:08 DI in Avalonia
2:56 3rd party DI containers
3:40 Microsoft DI packages
4:31 Community Toolkit Labs DI package
5:31 Sample project
6:36 Conclusions
7 июл 2024