Skip to content

Commit aa06345

Browse files
jamesmcroftSergio0694
authored andcommitted
Updated docs for ObservableRecipient OnDeactivated for remove all
1 parent 04889c0 commit aa06345

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/mvvm/MigratingFromMvvmLight.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ There is no direct replacement for the `ICleanup` interface.
169169

170170
However, the `ObservableRecipient` provides an `OnDeactivated` method which should be used to provide the same functionality as `Cleanup`.
171171

172+
`OnDeactivated` in the MVVM Toolkit will also unregister all of the registered messenger events when called.
173+
172174
```csharp
173175
// MvvmLight
174176
this.Cleanup();

0 commit comments

Comments
 (0)