Share via


ModulePage.OnActivated(Boolean) Method

Definition

Indicates that the page has been activated.

protected:
 virtual void OnActivated(bool initialActivation);
protected virtual void OnActivated (bool initialActivation);
abstract member OnActivated : bool -> unit
override this.OnActivated : bool -> unit
Protected Overridable Sub OnActivated (initialActivation As Boolean)

Parameters

initialActivation
Boolean

true to do additional processing for the first activation; otherwise, false.

Implements

Examples

The following example implements this method.

protected override void OnActivated(bool initialActivation) {

    base.OnActivated(initialActivation);
    initProxyRefresh(initialActivation);
    initClmHdr();
} 

Remarks

Applications should check the initialActivation state prior to doing expensive one-time initialization work.

Applies to