Skip to content

Latest commit

 

History

History

c3-AttachedBehavior

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Implementing attached behavior to reuse UI logic

This example is part of a 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

In the book, this recipe covers:

  • Creating an attached behavior that zooms an image on a double tap.
  • When an attached behavior is better than an attached property.
  • The importance of unsubscribing from events in the Behavior.OnDetachingFrom method.

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