UIContext.WhenActivated(Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.