UIContext.WhenActivated(Action) Method

Definition

Execute the given action if the context is active. If the context is not currently active, the action will be executed when it is first activated. The action executes at most once.

public:
 void WhenActivated(Action ^ action);
public void WhenActivated (Action action);
member this.WhenActivated : Action -> unit
Public Sub WhenActivated (action As Action)

Parameters

action
Action

The operation to execute.

Applies to