Click here to Skip to main content
15,867,870 members
Articles / Desktop Programming / WPF

WPF and RX - Dispose vs Complete

16 May 2021CPOL3 min read 5.9K   20   1   4
This tip shows two different approaches for disposing view models that use Reactive Extension
When implementing ViewModels that are using ReactiveExtension, it introduces reference retentions from your Observable to your ViewModels. Once you don't need your screen anymore, let's say after the user decides to close your view tab, you will have to carefully Dispose your ViewModels to make them collectable by the GarbageCollector.
We're sorry, but the article you are trying to view was deleted at 2 Apr 2023.

Please go to the WPF Table of Contents to view the list of available articles in this section.