.NET MAUI FOR C# DEVELOPERS build cross-platform mobile and desktop applications

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

Full description

Bibliographic Details
Main Authors: Liberty, Jesse, Juarez, Rodrigo (Author)
Other Authors: Montaquila, Maddy (writer of foreword)
Format: eBook
Language:English
Published: [S.l.] PACKT PUBLISHING LIMITED 2023
Edition:1st edition
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Understanding the structure of XAML
  • The code-behind file
  • Exploring the layout options
  • VerticalStackLayout
  • Image
  • Label
  • Code-behind and event handlers
  • If you can do it in XAML, you can do it in C#
  • C# versus Fluent C#
  • Summary
  • Quiz
  • Try it out
  • Chapter 4: MVVM and Controls
  • Technical requirements
  • Setting up for MVVM
  • Creating folders
  • The MVVM Community Toolkit
  • Exploring views
  • Forget Me Not labels
  • Data binding
  • Creating a public property
  • Setting up BindingContext
  • Assigning values to the View Model class properties
  • Implementing Binding
  • Sending and receiving messages
  • Getting started with WeakReferenceMessenger
  • Creating the page in C#
  • Displaying collections
  • Overriding OnAppearing
  • Understanding how the service works
  • Displaying the collection of Preference objects
  • The code-behind
  • Styles
  • Explicit versus implicit styles
  • Style inheritance or BasedOn
  • Summary
  • Quiz
  • You try it
  • Chapter 6: Layout
  • Technical requirements
  • Stack layouts
  • Grid
  • Sizing rows and columns
  • Named rows and columns
  • ScrollView
  • FlexLayout
  • Summary
  • Quiz
  • You try it
  • Part 2
  • Intermediate Topics
  • Chapter 7: Understanding Navigation
  • Technical requirements
  • Exploring the TabBar
  • Creating the About and Buddies pages
  • Assembling the About page
  • Shell navigation
  • Routing
  • Passing values from page to page
  • Passing values with the url (?) syntax
  • Passing values with a dictionary
  • Summary
  • Quiz
  • You try it
  • Chapter 8: Storing and Retrieving Data
  • Technical requirements
  • Storing user preferences
  • UserPreferencesViewModel
  • Navigating to UserPreferences
  • Retrieving the preferences
  • Storing to a database on your device
  • Installing SQLite
  • Cover
  • Copyright
  • Foreword
  • Contributors
  • Table of Contents
  • Preface
  • Part 1
  • Getting Started
  • Chapter 1: Assembling Your Tools and Creating Your First App
  • Technical requirements
  • Getting and installing Visual Studio
  • Installing Visual Studio
  • Git
  • Opening Visual Studio
  • Quick tour of the app
  • Summary
  • Quiz
  • You try it
  • Chapter 2: What We Will Build: Forget Me Not
  • Technical requirements
  • What is Forget Me Not?
  • Buddies
  • Inviting Buddies
  • Other pages
  • What you'll learn
  • Summary
  • Chapter 3: XAML and Fluent C#
  • Technical requirements
  • ViewModel versus code-behind
  • Views
  • Images
  • Button properties
  • ImageButton
  • TapGestureRecognizer
  • Entering text
  • Behaviors
  • Popups and dialogs
  • Presenting the user with a choice
  • ActionSheet
  • Displaying a prompt
  • Toast
  • Snackbar
  • BoxView
  • Frame
  • Brushes
  • The Solid brush
  • LinearGradientBrush
  • RadialGradientBrush
  • Summary
  • Quiz
  • You try it
  • Chapter 5: Advanced Controls
  • Technical requirements
  • Keeping the user informed of activity
  • ActivityIndicator
  • ProgressBar
  • Moving event handling to ViewModel
  • Breaking it down