.NET MAUI Dependency Injection
Tuesday, June 14, 2022
Dependency Injection (DI) is a pattern that we use in continuation of separation of concerns. A class should only be interested in what it is doing, not newing up some other class. Just inject foreign classes into the constructor and be on your way. It’s that simple. Why? Our app is fairly small right now but as it gets bigger we’ll be thankful for dependency injection. If you look at the MainPage.…
.NET MAUI MVVM
Wednesday, June 8, 2022
So we have a pretty nice start to our app. We can display some data, but that data is not only hard coded, it’s hard coded in the XAML file. There’s a clear separation of concerns when it comes to data and presentation. We should follow that. In this post we’ll focus on a pattern of programming known as Model View ViewModel or MVVM for short. This is in the family of patterns as Model View Controller (MVC) and Model View Presenter (MVP).…