Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 772 Bytes

File metadata and controls

11 lines (8 loc) · 772 Bytes

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.