Learn how to build native cross-platform apps for iOS, Android, Windows, and Mac with a single code-base using C# and .NET MAUI.
Key Features
- Build cross-platform native apps building on the skills you already have
- Learn by building a real-world non-trivial application
- Go beyond MAUI to integrate with the .NET eco-system
Book Description
In Learn .NET MAUI you will create a real-world non-trivial application that will run natively on iOS, Android, Windows and Mac. You will build on your C# experience and learn how to create a beautiful UI using XAML or Fluent C#, how to architect a solid app, and best practices for this Microsoft platform.
The book starts with the fundamentals, but quickly moves to intermediate and advanced topics, demonstrating how to layout your pages, navigate between them, and add controls to gather and display data. You will learn the key architectural pattern of Model-View-ViewModel: what it is and why you want to use it.
No solid app is complete without unit tests, and you will see how to use xUnit and NSubstitute to create robust and reliable code coverage. Finally, having mastered .NET MAUI, you will see how to create an API for your app to interact with, and how to create a web front-end to the same back end data and API using Blazor and C#.
What you will learn
- The fundamentals of creating .NET MAUI apps with Visual Studio
- XAML and Fluent C# as the key tools needed to build your user interface
- Layout and controls for obtaining and displaying data
- The MVVM pattern to create robust apps
- Storing and retrieving persistent data
- Building custom controls when the supplied controls fall short
- Unit Testing to ensure your app is solid and reliable
- Integration into the .NET eco-system to build a web-based front-end
Who This Book Is For
Learning .NET MAUI is targeted squarely at C# programmers, whether or not they have experience with cross-platform or mobile applications, who wish to learn Microsoft's premier platform for building iOS, Android, Windows and Mac apps using a single C#-based solution.
Table of Contents
- Assembling your tools and creating your first app
- What we will build: Forget Me
- XAML and Fluent C#
- Controls
- Pages and Layout
- Databinding and the MVVM pattern
- Navigation and routes
- Storing and retrieving data
- Unit Testing with Mocks
- Custom Controls
- Creating a back end service and API
Jesse Liberty is a full-time hands-on programmer, specializing in C#, git and .NET MAUI. He hosts the popular Yet Another Podcast and is the author of more than a dozen best-selling programming books. Liberty is a Certified Xamarin Developer, a Xamarin MVP and a Microsoft MVP. He was a Technical Evangelist for Microsoft, Distinguished Software Engineer at AT&T; Software Architect for PBS and Vice President of Information Technology at Citibank, and he was on the teaching staff at Brandeis University. Jesse is a recognized expert and has spoken at conferences world-wide.
Rodrigo Juarez is a full stack and Xamarin/MAUI developer. He has over 25 years of experience in a wide variety of projects in the development of applications for web, desktop and mobile using Microsoft technologies in areas such as management, services, insurance, pharmacy, health and banks.