Made EASY - WPF Dependency Injection with IServiceCollection
June 24, 2024
• 4,737 views
wpfwinuinet mauimvvmwpf codewpf mvvmwpf uixamlwpf corewpf data bindingdata bindingdotnetwpf .net corewpf data binding c#mvvm programmingwpf controlswhat is data bindingwpf ui designwpf netwpf net 7mvvm tutorialwpf designwpf design tutorialxaml tutorialwpf xamlformat xamlwindows presentation foundationvisual studiodotnet shortsclean codesoftware engineering.net developers.net developerdot netC#csharp.net
Dependency injection is a core part of any modern C# application -- and WPF apps are no different!
In this video, I'll walk you through how we can transform a simple WPF application to take advantage of dependency injection using IServiceCollection.
And you know that fun MVVM pattern that gets used heavily with WPF?
Rest assured! We can inject our View Models into our Views with IServiceCollection and clean things up nicely!
