ViewForMixins.

WhenActivated(IActivatableViewModel, Action<CompositeDisposable>) Method

Summary

WhenActivated allows you to register a Func to be called when a ViewModel's View is Activated.
Namespace
ReactiveUI
Containing Type
ViewForMixins

Syntax

public static void WhenActivated(this IActivatableViewModel item, Action<CompositeDisposable> block)

Parameters

Name Type Description
item IActivatableViewModel Object that supports activation.
block Action<CompositeDisposable> The method to be called when the corresponding View is activated. The Action parameter (usually called 'disposables') allows you to collate all the disposables to be cleaned up during deactivation.

Return Value

Type Description
void