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




.NET MAUI for C# Developers


Book Description

A practical guide to mastering C# and .NET MAUI to build native cross-platform apps with a single codebase Purchase of the print or Kindle book includes a free PDF eBook Key FeaturesExtend your skills to build cross-platform native apps for iOS, Android, Windows, and MacLearn by working on a real-world projectGo beyond MAUI and integrate with the .NET ecosystemBook Description While UI plays a pivotal role in retaining users in a highly competitive landscape, maintaining the same UI can be tricky if you use different languages for different platforms, leading to mismatches and un-synced pages. In this book, you'll see how .NET MAUI allows you to create a real-world application that will run natively on different platforms. By building on your C# experience, you'll further learn to create beautiful and engaging UI using XAML, architect a solid app, and discover best practices for this Microsoft platform. The book starts with the fundamentals and quickly moves on to intermediate and advanced topics on laying out your pages, navigating between them, and adding controls to gather and display data. You'll explore the key architectural pattern of Model-View-ViewModel: and ways to leverage it. You'll also use xUnit and NSubstitute to create robust and reliable code. By the end of this book, you'll be well-equipped to leverage .NET MAUI and create an API for your app to interact with a web frontend to the backend data using C#. What you will learnExplore the fundamentals of creating .NET MAUI apps with Visual StudioUnderstand XAML as the key tool for building your user interfaceObtain and display data using layout and controlsDiscover the MVVM pattern to create robust appsAcquire the skills for storing and retrieving persistent dataUse unit testing to ensure your app is solid and reliableWho 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.




.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.




NET Application Architecture Guide


Book Description

"The guide is intended to serve as a practical and convenient overview of, and reference to, the general principles of architecture and design on the Microsoft platform and the .NET Framework".




Introducing Machine Learning


Book Description

Master machine learning concepts and develop real-world solutions Machine learning offers immense opportunities, and Introducing Machine Learning delivers practical knowledge to make the most of them. Dino and Francesco Esposito start with a quick overview of the foundations of artificial intelligence and the basic steps of any machine learning project. Next, they introduce Microsoft’s powerful ML.NET library, including capabilities for data processing, training, and evaluation. They present families of algorithms that can be trained to solve real-life problems, as well as deep learning techniques utilizing neural networks. The authors conclude by introducing valuable runtime services available through the Azure cloud platform and consider the long-term business vision for machine learning. · 14-time Microsoft MVP Dino Esposito and Francesco Esposito help you · Explore what’s known about how humans learn and how intelligent software is built · Discover which problems machine learning can address · Understand the machine learning pipeline: the steps leading to a deliverable model · Use AutoML to automatically select the best pipeline for any problem and dataset · Master ML.NET, implement its pipeline, and apply its tasks and algorithms · Explore the mathematical foundations of machine learning · Make predictions, improve decision-making, and apply probabilistic methods · Group data via classification and clustering · Learn the fundamentals of deep learning, including neural network design · Leverage AI cloud services to build better real-world solutions faster About This Book · For professionals who want to build machine learning applications: both developers who need data science skills and data scientists who need relevant programming skills · Includes examples of machine learning coding scenarios built using the ML.NET library




Introducing .NET 6


Book Description

Welcome to .NET 6, Microsoft’s unified framework that converges the best of the modern and traditional .NET Framework. This book will introduce you to the new aspects of Microsoft’s fully supported .NET 6 Framework and will teach you how to get the most out of it. You will learn about the progress to one unified .NET, including MAUI and the revival of desktop development. You will dive into Roslyn, Blazor, CLI, Containers, Cloud, and much more, using a “framework first” learning approach. You will begin by learning what each tool is, its practical uses, and how to apply it and then you will try it out on your own for learning reinforcement. And, of course, there will be plenty of code samples using C# 10. Introducing .NET 6 is aimed at .NET developers, both junior developers and those coming from the .NET framework, who want to understand everything the modern framework has to offer, besides the obvious programming languages. While you will still see a lot of fabulous C# 10 throughout the book, the focus of this learning is all about .NET and its tooling. What You Will Learn Become a more versatile developer by knowing the variety of options available to you in the .NET 6 framework and its powerful tooling Know the different front-end frameworks .NET offers, such as UWP, WPF, and WinForms, and how they stack up to each other Understand the different communication protocols, such as REST and gRPC, for your back-end services Discover the secrets of cloud-native development, such as serverless computing with Azure Functions and deploying containers to Azure Container Services Master the command line, take your skill set to the cloud, and containerize your .NET 6 app Who This Book Is For Both students and more experienced developers, C# developers who want to learn more about the framework they use, developers who want to be more productive by diving deeper into the tooling that .NET 6 brings to the fold, developers who need to make technical decisions. A working knowledge of C# is recommended to follow the examples used in the book.




.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




Learn WinUI 3


Book Description

Unlock the power of WinUI and supercharge your Windows app development with .NET and C# using this beginner's guide Key Features Find out how to create modern Windows apps with native UI controls Get to grips with modernizing existing desktop apps with a modern UI Leverage WinUI code to build apps for iOS, Android, the web, and more Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionWinUI 3 takes a whole new approach to delivering Windows UI components and controls and has the ability to deliver the same features across multiple versions of Windows. Learn WinUI 3 is a comprehensive introduction to WinUI and Windows apps for anyone who is new to WinUI and XAML applications. This updated second edition begins by helping you get to grips with the latest features in WinUI and shows you how XAML is used in UI development. The next set of chapters will help you set up a new Visual Studio environment, develop a new desktop project, incorporate the Model-View-ViewModel (MVVM) pattern in a WinUI project, and develop unit tests for ViewModel commands. Next, you’ll cover the basics of data access from WinUI projects with a step-by-step approach. As you advance, you’ll discover how to leverage the Fluent Design System to design beautiful WinUI applications. You’ll also explore the contents and capabilities of the Windows Community Toolkit and learn how to create cross-platform apps with markup and code from your project using Uno Platform. The concluding chapters will teach you how to build, debug, and deploy apps to the Microsoft Store. By the end of this book, you’ll have learned how to build WinUI applications from scratch and how to modernize existing desktop apps using WinUI 3 and the Windows App SDK.What you will learn Discover the latest features of WinUI 3 and learn how to provide product feedback Understand the WinUI project structure and the app lifecycle Use the MVVM pattern in WinUI and discover open source MVVM projects Find out how to create a simple data store to save app data between sessions Get to grips with incorporating the concepts of Fluent Design into a WinUI app Discover how to use push notifications and app notifications in WinUI Reuse WinUI views and view models in a cross-platform Uno Platform app Who this book is for This book is for anyone looking to develop applications for Windows with a modern UI. If you’re familiar with Windows desktop app development and want to enhance your knowledge of the latest Windows development techniques, this book is for you. Whether you're starting a new project or planning to modernize your existing Windows apps, this book will provide you with guidance. Hands-on experience with C# and .NET is expected, but no prior knowledge of WinUI or the Windows App SDK is required.




.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.




Learning C# Through Small Projects


Book Description

Learning C# Through Small Projects offers you a hands-on approach to understanding advanced C# concepts through engaging projects and minigames. The rationale is simple: learning by doing. You dive straight into the action, building eleven distinct projects that range from an interactive storytelling program to a responsive Discord chatbot. Each project is meticulously designed to introduce and reinforce specific C# concepts, ensuring that you not only understand the theory but can also apply it in real-world scenarios. The book is structured to provide a gradual learning curve. The initial chapters lay the foundation, introducing you to the basics of C# programming. As you progress, the projects become more intricate, delving into advanced topics such as asynchronous operations, data integrity, and API integration. By the end of the book, you'll have a comprehensive understanding of C# and a portfolio of projects to showcase your skills. Authored by Denis Panjuta and Jafar Jabbarzadeh, renowned instructors with a combined student base of over 350,000, this book is more than just a guide—it's a mentor. Their vast teaching experience shines through in every chapter, ensuring that complex topics are broken down into easily digestible segments. Moreover, their commitment to practical learning ensures that every concept is paired with a hands-on project, thus reinforcing your understanding and building your confidence.