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: michaelscodingspot.com/5-tech...
SOURCE CODE: github.com/SingletonSean/wpf-...
OTHER LINKS:
Donations: www.paypal.com/biz/fund?id=UB...
2 июл 2024