Learn how to send messages and communicate between multiple view models. This concept is crucial for implementing other WPF infrastructure, such as navigation or state management. View model communication involves creating a "pub/sub" mediator object that will take in messages and send them to subscribing view models. Other concepts covered include events and disposing event handlers.
TIMESTAMPS:
0:00 - Introduction
0:21 - Demo Introduction
1:22 - Unrecommended Solution
2:13 - Recommended Solution (Pub/Sub, Mediator)
2:59 - Implementation
6:26 - Testing
6:40 - Disposing Store Subscriptions
8:00 - Conclusion
EVENT MEMORY LEAKS: https://michaelscodingspot.com/5-techniques-to-avoid-memory-leaks-by-events-in-c-net-you-should-know/
SOURCE CODE: https://github.com/SingletonSean/wpf-tutorials/tree/master/CommunicationMVVM
OTHER LINKS:
Donations: https://www.paypal.com/biz/fund?id=UBZCZWX2UVWJE
Download
0 formats
No download links available.
View Model Communication/Messaging - EASY WPF (.NET 5) | NatokHD