Skip to content

Latest commit

 

History

History

c2-GeneratedViewModels

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Implementing auto-generated view models

This example compliments a corresponding recipe from the book published by Packt:

.NET MAUI Cookbook: Build a full-featured app swiftly with MVVM, CRUD, AI, authentication, real-time updates, and more

The recipe in the book covers the following topics:

  • Eliminating boilerplate code in view models with CommunityToolkit.Mvvm.
  • Understanding how property and command auto-generation works.
  • Locating auto-generated view models.
  • Using auto-generation when your view model inherits from another class.
  • Capturing the moment when an auto-generated property changes.
  • Sending a property change notification for one property when another property changes.
  • Refreshing a command's CanExecute state when a property changes.

Note: This example may not include all the points mentioned above. For complete details, please refer to the corresponding recipe in the book.