- .NET MAUI – Locking Orientation into Portrait or Landscape
This is a tutorial that shows how to lock your .NET MAUI app into a particular orientation.
- .NET MAUI Different layouts for Portrait vs Landscape
.NET Maui allows you to create views for your applications pages but you might run into the problem where you have an app that has a page(s) that are really crowded with Controls. The page looks find on portrait orientation but when you switch to Landscape your Controls run over…
- Using CommunityToolkit.MAUI in your .NET MAUI project to simplify your code.
You can use the CommunityToolkit.MAUI library to simplify your .NET MAUI code.This library has simple annotations that allow you to annotate a property for commands and observable properties for your Controls which makes it so that you don’t have to define all of the boilerplate code that are typically required…
- Adding Local Database ORM Extensions to Your .NET MAUI Project
.NET MAUI has a great tutorial on how to add a local database to your .NET MAUI project. The tutorial shows how to add sqlite-net-pcl library to your NuGet packages. This provides a lightweight ORM that does extremely basic ORM capabilities. We won’t cover that here, but in this post…
- Using Dependency Injection for your .NET MAUI Project
As we mentioned in our tutorial on setting up your project using a MVVM software engineering pattern, you will use a ViewModel to put your business logic into and bind that to the code behind of your view. The above example doesn’t instantiate a new ViewModel object. As you can…
- Use a MVVM Pattern for your .NET MAUI App
When you first create a .NET MAUI project you have a single ContentPage for your project. That content page consists of a XAML file which defines the various Controls that the user will see when viewing the page. The ContentPage also consists of a code behind file that has the…
- Organizing a New .NET MAUI Project
When you first create a .NET MAUI project using Visual Studio the default layout puts your pages in the top level folder of the project. We are going to create a set of folders to store our files in a way that satisfies the separation of concerns software engineering principle.…