.NET MAUI Cross-Platform Application Development


Book Description

Build apps using .NET MAUI and Blazor with this comprehensive, revised guide for .NET 8. Purchase of the print or Kindle book includes a free eBook in PDF format. Key Features Handle data effectively with expanded coverage on the MVVM model and data binding Integrate platform-specific code using plugins and custom controls Migrate from Xamarin.Forms to .NET MAUI for the latest hybrid app development capabilities Book DescriptionAn evolution of Xamarin.Forms, .NET MAUI is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. Using .NET MAUI, you can develop apps that’ll run on Android, iOS, macOS, and Windows from a single shared codebase. In this revised edition of .NET MAUI Cross-Platform Application Development you will be introduced to .NET 8 and get up to speed with app development in no time. The book begins by showing you how to develop a cross-platform application using .NET MAUI, including guidance for migrating from Xamarin.Forms. You’ll gain all the knowledge needed to create a cross-platform application for Android, iOS, macOS, and Windows following an example project step by step. As you advance, you’ll integrate the latest frontend technology into your app using Blazor components, including the new Blazor Bindings feature. After this, you’ll learn how to test and deploy your apps. With new coverage on creating mock .NET MAUI components, you can develop unit tests for your application. You will additionally learn how to perform Razor component testing using bUnit. By the end of this book, you’ll have learned how to develop your own cross-platform applications using .NET MAUI.What you will learn Develop high-performance apps with logical user interfaces Improve the maintainability of apps using the MVVM design pattern Understand the progression from Xamarin.Forms and how to migrate to .NET Delve into templated components and Razor class libraries for crafting Blazor UI elements Publish your creations to major app stores with guidance on preparation and processes Extend your testing repertoire with bUnit for Razor components for reliable unit testing Who this book is for This book is for mobile developers interested in cross-platform application development with working experience of the .NET Core framework, as well as junior engineers who’ve just begun their career in mobile app development. Native app developers (desktop) or Xamarin developers who want to migrate to .NET MAUI will also benefit from this book. Basic knowledge of modern object-oriented programming languages, such as C#, Java or Kotlin, is assumed.




The MVVM Pattern in .NET MAUI


Book Description

Gain an in-depth understanding of MVVM and .NET MAUI and learn how to effectively apply the MVVM design pattern with the help of this practical guide Key Features Get to grips with the principles and benefits of the Model-View-ViewModel design pattern Gain insights into .NET MAUI's MVVM-enabling components and effectively apply them with hands-on examples Learn data binding, navigation, and testable code techniques to create dynamic, accessible, and localized apps Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionIn today's fast-paced world of modern software development, teams need to be efficient, productive, and capable of rapidly adapting to changes to deliver high-quality products, making it crucial for developers to write maintainable and easy-to-test code. The MVVM Pattern in .NET MAUI helps you to thoroughly explore the Model-View-View Model (MVVM) design pattern. The chapters show you how this pattern helps in structuring code to embrace the separation of concerns, allowing for loosely coupled user interface and application logic, which ultimately empowers you to write more robust, maintainable, and testable code. The book also highlights .NET MAUI's capabilities and features, and enables you to delve into the essential components within the framework that facilitate the application of the MVVM pattern. With the help of a sample application, this definitive guide takes a hands-on approach to walk you through both the essential and advanced usages of the MVVM pattern to ensure that you successfully apply the practical aspects of the pattern to your .NET MAUI projects. By the end of this book, you’ll have gained a comprehensive understanding of the MVVM design pattern and its relevance in the context of .NET MAUI, as well as developed the skills needed to successfully apply it in practice.What you will learn Gain a thorough understanding of the MVVM design pattern Get to grips with the components that enable MVVM in .NET MAUI Apply the MVVM pattern in practice within .NET MAUI Become proficient in data binding in .NET MAUI Discover how to navigate from within a view model Find out how to effectively write testable code and unit tests Who this book is forThis book is for developers with experience in C# and basic knowledge of .NET MAUI or Xamarin.Forms who are looking to create cross-platform applications with .NET MAUI and leverage the MVVM pattern. Through practical examples and clear explanations, this book helps both newcomers and experienced developers master the application of MVVM principles within .NET MAUI projects.




.NET MAUI Projects


Book Description

Harness the powerful features of .NET MAUI, the evolution of Xamarin.Forms, to create multi-platform app projects using location services, the weather API, machine learning, and much more Key Features Leverage .NET MAUI through real-world projects, from weather apps to real-time multiplayer games with SignalR and Azure Functions Explore the essential features of .NET MAUI such as Shell, CollectionView, and CarouselView Go beyond the basics with advanced topics like machine learning using TensorFlow and ML.NET Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionThis third edition of .NET MAUI Projects explores the features of .NET MAUI, a lightweight multi-platform development toolkit for building apps with a rich user interface. Updated to cover the latest features of .NET MAUI, including CollectionView and Shell, this book delves into concepts such as machine learning and cloud services. Starting with an overview of .NET Core and how it works, this book shares tips for choosing the right development environment for planning multi-platform apps. You'll then build your first .NET MAUI app and advance to learning how to use Shell to implement app architecture. Progressing in complexity, the projects guide you through creating apps, ranging from a location tracker and weather map to machine learning and multiplayer games. Further, the book will take you through modern mobile development frameworks such as SQLite, .NET Core, and ML.NET, empowering you to customize your apps for Windows, macOS, Android, and iOS platforms for native-like performance. Engaging examples are woven throughout the book so you can grasp essential concepts by writing code rather than extensive theory. By the end of this book, you'll be ready to develop your own native apps using .NET MAUI and associated technologies such as .NET Core, Visual Studio 2022, and C#.What you will learn Set up .NET MAUI to build native apps for multiple platforms using its single project capabilities Understand the core aspects of developing a mobile app, such as layout, UX, and rendering Use custom handlers for platform-specific access Discover how to create custom layouts for your apps with .NET MAUI Shell Implement serverless services in your .NET MAUI apps using Azure SignalR Create a .NET MAUI Blazor application leveraging the power of web technologies Build and train machine learning models using ML.NET and Azure Cognitive Services Who this book is for This book is for C# and .NET developers who want to learn .NET MAUI and get started with native .NET Core mobile application development from the ground up. Working knowledge of Visual Studio and C# will help you to get the most out of this book.




Enterprise Application Development with C# 10 and .NET 6


Book Description

A comprehensive guide to every important component of C# and .NET 6 required to build robust enterprise web applications Key Features • Explore the advanced features of C# and .NET 6 to enhance your code and productivity • Follow clear and easy instructions for building an end-to-end enterprise application • Learn how to build scalable web applications and host them on the cloud Book Description Building production-ready enterprise applications can be a challenging task due to the overabundance of tools and their different versions that make app development complex. This book simplifies the process with an end-to-end road map for building enterprise applications from scratch using the latest features of .NET Core 6 and C# 10. Throughout the book, you'll work on creating an enterprise app, adding a key component to the app with each chapter, before finally getting it ready for testing and deployment. You'll learn concepts relating to advanced data structures, the Entity Framework Core, parallel programming, and dependency injection. As you progress, you'll cover various authentication and authorization schemes provided by .NET Core to make your apps and APIs secure. The book then shows you how the latest Microsoft Visual Studio and C# 10 help you simplify developer tasks and shares tips and tricks in Visual Studio to improve your productivity. You'll discover various testing techniques, such as unit testing and performance testing, as well as different methods to deploy enterprise apps. By the end of this book, you'll be able to create enterprise apps using the powerful features of .NET 6 and deploy them to the cloud while working with various cloud components using Azure. What you will learn • Design enterprise apps by making the most of the latest features of .NET 6 • Discover different layers of an app, such as the data layer, API layer, and web layer • Explore end-to-end architecture by implementing an enterprise web app using .NET and C# 10 and deploying it on Azure • Focus on the core concepts of web application development and implement them in .NET 6 • Integrate the new .NET 6 health and performance check APIs into your app • Explore MAUI and build an application targeting multiple platforms - Android, iOS, and Windows Who this book is for If you are a developer, architect, or senior programmer, this book will show you how to leverage the features of .NET 6 and the C# language, as well as help you grasp essential techniques to build your skills.




.NET MAUI in Action


Book Description

Build cross-platform apps with .NET MAUI! This exciting new technology helps you create mobile and desktop apps using a common set of .NET tools. In .NET MAUI in Action you will learn how to: Set up your environment for cross-platform development Write an interactive UI in XAML using out-of-the-box controls Apply the MVVM pattern to build maintainable code Extend your control library with custom controls Structure your app using common navigation paradigms Use common device features like GPS Use DevOps tools to automate deployment and testing .NET MAUI in Action shows you how you can use the cutting-edge MAUI framework to write apps that will run on Windows, Android, macOS, and iOS platforms using your existing .NET development skills. This book reveals essential MAUI development techniques through hands-on example applications in every chapter. You’ll learn cross-platform development quickly as you start building your own rich apps, from to-do list apps, to a movie recommender app, and eventually a full-stack solution using enterprise architecture patterns. You’ll also learn how to use GitHub Actions to deploy robust, testable, and maintainable apps; and how to deliver a consistent look and feel across platforms. Throughout, you’ll use the built-in controls of .NET MAUI and learn how to develop your own custom solutions. Foreword by Kym Phillpotts. About the technology Write your app once and deploy it on mobile, desktop, web, and cloud with .NET MAUI. This powerful multi-platform App UI framework saves time and money by eliminating tedious platform-specific rewrites. You just define your project in straightforward XAML markup and C#, and MAUI generates the native applications for iOS, Android, Windows, and macOS. About the book .NET MAUI in Action teaches you how to build cross-platform applications using the .NET MAUI framework. You’ll explore compelling examples while you work your way up from “Aloha World” to a full-stack enterprise solution. Along the way, you’ll master the MVVM pattern and other essentials of mobile UI development. This practical book is perfect for .NET developers who have never created mobile apps. What's inside Write interactive UIs in XAML using out-of-the-box controls Extend your control library with custom controls Use common device features like GPS Automate deployment and testing About the reader For experienced .NET developers. No iOS or Android experience required. About the author Matt Goldman is a Solution Architect at SSW, a regular speaker at user groups and conferences, and maintains open source libraries for use in .NET MAUI apps. Table of Contents PART 1 - INTRODUCING .NET MAUI 1 Introducing .NET MAUI 2 Building a .NET MAUI app 3 Making .NET MAUI apps interactive PART 2 - VIEWS, LAYOUTS, AND CONTROLS 4 Controls 5 Layouts 6 Advanced layout concepts 7 Pages and navigation PART 3 - ENTERPRISE DEVELOPMENT PATTERNS AND PRACTICES 8 Enterprise app development 9 The MVVM Pattern 10 Styles, themes, and multiplatform layouts 11 Beyond the basics: Custom controls 12 Deploying apps to production with GitHub Actions




C# 10 and .NET 6 – Modern Cross-Platform Development


Book Description

Publisher’s Note: Microsoft will stop supporting .NET 6 from November 2024. The newer 8th edition of the book is available that covers .NET 8 (end-of-life November 2026) with C# 12 and EF Core 8. Purchase of the print or Kindle book includes a free PDF eBook Key Features Explore the newest additions to C# 10, the .NET 6 class library, and Entity Framework Core 6 Create professional websites and services with ASP.NET Core 6 and Blazor Build cross-platform apps for Windows, macOS, Linux, iOS, and Android Book DescriptionExtensively revised to accommodate all the latest features that come with C# 10 and .NET 6, this latest edition of our comprehensive guide will get you coding in C# with confidence. You’ll learn object-oriented programming, writing, testing, and debugging functions, implementing interfaces, and inheriting classes. The book covers the .NET APIs for performing tasks like managing and querying data, monitoring and improving performance, and working with the filesystem, async streams, and serialization. You’ll build and deploy cross-platform apps, such as websites and services using ASP.NET Core. Instead of distracting you with unnecessary application code, the first twelve chapters will teach you about C# language constructs and many of the .NET libraries through simple console applications. In later chapters, having mastered the basics, you’ll then build practical applications and services using ASP.NET Core, the Model-View-Controller (MVC) pattern, and Blazor.What you will learn Build rich web experiences using Blazor, Razor Pages, the Model-View-Controller (MVC) pattern, and other features of ASP.NET Core Build your own types with object-oriented programming Write, test, and debug functions Query and manipulate data using LINQ Integrate and update databases in your apps using Entity Framework Core, Microsoft SQL Server, and SQLite Build and consume powerful services using the latest technologies, including gRPC and GraphQL Build cross-platform apps using XAML Who this book is forDesigned for both beginners and C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the past few years, this book doesn’t need you to have any C# or .NET experience. However, you should have a general understanding of programming before you jump in.




Learning .NET MAUI


Book Description

A practical guide to cross-platform app development with .NET MAUI and C# KEY FEATURES ● Get familiar with .NET MAUI, its associated libraries, and popular design patterns used in cross-platform app development. ● Learn how to design and implement visually appealing and interactive user interfaces in your .NET MAUI app. ● Deep dive into the process of creating and refining an application with a custom user interface (UI). DESCRIPTION .NET MAUI (Multi-platform App UI) is a framework developed by Microsoft that allows developers to build cross-platform mobile and desktop applications using a single codebase. This book is a comprehensive guide that covers various aspects of cross-platform development with .NET MAUI. In the initial chapters you will gain a solid understanding of the fundamental aspects and specifics of cross-platform .NET MAUI apps, their structure and the diverse range of application resources. The book will then guide you in creating your first UI application using cross-platform techniques. Moving on, you will delve into more advanced topics such as MVVM, dependency injection, data storage, leveraging device capabilities, and ensuring accessibility in your applications. Lastly, you will explore alternative approaches like Shell and Blazor Hybrid, offering flexible options for building native applications. By the end of the book, you will be able to develop cross-platform applications using .NET MAUI. WHAT YOU WILL LEARN ● Understand how .NET MAUI works. ● Build custom UI including animations and custom controls. ● Build robust distributed architecture including MVVM and DI. ● Explore different application design approaches such as Hierarchical, Shell, and Hybrid-Blazor. ● Learn how to embed the LiteDB database seamlessly into your apps. WHO THIS BOOK IS FOR This book caters to both beginners entering the world of cross-platform GUI app development with .NET and professionals who have previous experience with Xamarin. Prior knowledge of C# or a strong foundation in other programming languages is essential to comprehend and benefit from the book fully. TABLE OF CONTENTS 1. Getting Started with .NET MAUI 2. Upskill Essentials of C# 3. Exploring .NET MAUI and Its Features 4. In and Out of UI Development 5. Layering with MVVM 6. Deep Dive into UI Design 7. Essentials and Community Toolkit 8. Accessibility 9. Native Interactive Features with Shell and Blazor




Visual Basic Quickstart Guide


Book Description

Master software development with Visual Basic, from core concepts to real-world applications, with this comprehensive guide Key Features Acquire a solid understanding of object-oriented programming (OOP) principles, such as inheritance and polymorphism Develop expertise in maintaining legacy code with increased efficiency Learn to read, write, and differentiate between VB Script, VBA, VB Classic, and VB.NET Code Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionWhether you’re an absolute beginner or an experienced developer looking to learn the Visual Basic language, this book takes a hands-on approach to guide you through the process. From the very first chapters, you'll delve into writing programs, exploring core concepts such as data types, decision branching, and iteration. Additionally, you’ll get to grips with working with data structures, file I/O, and essential object-oriented principles like inheritance and polymorphism. This book goes beyond the basics to equip you with the skills to read and write code across the entire VB family, spanning VB Script, VBA, VB Classic, and VB.NET, enabling you to handle legacy code maintenance with ease. With clear explanations, practical examples, and hands-on exercises, this book empowers you to tackle real-world software development tasks, whether you're enhancing existing projects or embarking on new ones. It addresses common challenges like distinguishing between the variations of the VB programming language to help you choose the right one for your projects. Don't let VB's extensive legacy daunt you; embrace it with this comprehensive guide that equips you with practical, up-to-date coding skills to overcome the challenges presented by Visual Basic's rich history of over two decades.What you will learn Acquire a solid understanding of object-oriented programming (OOP) principles, such as inheritance and polymorphism Develop expertise in maintaining legacy code with increased efficiency Learn to read, write, and differentiate between Visual Baic Script, Visual Baic for Applications, Visual Baic Classic, and VB.NET Code Purchase of the print or Kindle book includes a free PDF e-book Who this book is forIf you’re a software developer or web developer either already engaged in or aspiring to be involved in maintaining, enhancing, administering, and defending visual basic programs, websites, and scripts, this book is for you. It's an excellent resource for beginners in software development who want to learn Visual Basic from scratch.




C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals


Book Description

Publisher’s Note: Microsoft will stop supporting .NET 7 from May 2024. The newer 8th edition of the book is available that covers .NET 8 (end-of-life November 2026) with C# 12 and EF Core. Purchase of the print or Kindle book includes a free PDF eBook Key Features Explore the newest additions to C# 11, the .NET 7 class libraries, and Entity Framework Core 7 Create professional websites and services with ASP.NET Core 7 and Blazor Build your confidence with step-by-step code examples and tips for best practices Book DescriptionExtensively revised to accommodate the latest features that come with C# 11 and .NET 7, this latest edition of our guide will get you coding in C# with confidence. You’ll learn object-oriented programming, writing, testing, and debugging functions, implementing interfaces, and inheriting classes. Next, you’ll take on .NET APIs for performing tasks like managing and querying data, working with the filesystem, and serialization. As you progress, you’ll also explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core. Instead of distracting you with unnecessary graphical user interface code, the first eleven chapters will teach you about C# language constructs and many of the .NET libraries through simple console applications. Having mastered the basics, you’ll then start building websites, web services, and browser apps. By the end of this book, you’ll be able to create rich web experiences and have a solid grasp of object-oriented programming that you can build upon.What you will learn Build rich web experiences using Blazor, Razor Pages, the Model-View-Controller (MVC) pattern, and other features of ASP.NET Core Write, test, and debug functions Query and manipulate data using LINQ Integrate and update databases in your apps using Entity Framework Core models Build and consume powerful services using the latest technologies, including Web API and Minimal API For .NET 6 developers: C# 11 can be used with .NET 6, including features like raw string literals EF Core 7 targets .NET 6, so you can benefit from its new features like ExecuteUpdate and ExecuteDelete for more efficient data modifications Who this book is forThis book is primarily for beginners, but intermediate-level C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the past few years will also find plenty of useful information in it. Prior exposure to C# or .NET is not a prerequisite, but you should have a general understanding of programming before you jump in. If you already have some C# and .NET skills and want to focus on developing apps, we recommend that you pick up Mark’s other .NET book, Apps and Services with .NET 7, instead.




Software Architecture with C# 12 and .NET 8


Book Description

A book for the aspiring .NET software architect – design scalable and high-performance enterprise solutions using the latest features of C# 12 and .NET 8 Purchase of the print or Kindle book includes a free PDF eBook Key Features Get introduced to software architecture fundamentals and begin applying them in .NET Explore the main technologies used by software architects and choose the best ones for your needs Master new developments in .NET with the help of a practical case study that looks at software architecture for a travel agency Book DescriptionSoftware Architecture with C# 12 and .NET 8 puts high-level design theory to work in a .NET context, teaching you the key skills, technologies, and best practices required to become an effective .NET software architect. This fourth edition puts emphasis on a case study that will bring your skills to life. You’ll learn how to choose between different architectures and technologies at each level of the stack. You’ll take an even closer look at Blazor and explore OpenTelemetry for observability, as well as a more practical dive into preparing .NET microservices for Kubernetes integration. Divided into three parts, this book starts with the fundamentals of software architecture, covering C# best practices, software domains, design patterns, DevOps principles for CI/CD, and more. The second part focuses on the technologies, from choosing data storage in the cloud to implementing frontend microservices and working with Serverless. You’ll learn about the main communication technologies used in microservices, such as REST API, gRPC, Azure Service Bus, and RabbitMQ. The final part takes you through a real-world case study where you’ll create software architecture for a travel agency. By the end of this book, you will be able to transform user requirements into technical needs and deliver highly scalable enterprise software architectures.What you will learn Program and maintain Azure DevOps and explore GitHub Projects Manage software requirements to design functional and non-functional needs Apply architectural approaches such as layered architecture and domain-driven design Make effective choices between cloud-based and data storage solutions Implement resilient frontend microservices, worker microservices, and distributed transactions Understand when to use test-driven development (TDD) and alternative approaches Choose the best option for cloud development, from IaaS to Serverless Who this book is for This book is for engineers and senior software developers aspiring to become architects or looking to build enterprise applications with the .NET stack. Basic familiarity with C# and .NET is required to get the most out of this software architecture book.