共用方式為


ContentDialog.onaftershow event

Raised immediately after the dialog is shown.

Syntax

function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
contentDialog.addEventListener("aftershow", handler);
contentDialog.removeEventListener("aftershow", handler);
 
- or -

contentDialog.onaftershow = handler;

Event information

Synchronous No
Bubbles Yes
Cancelable No

 

Event handler parameters

  • eventInfo
    Type: Event**

    An object that contains information about the event.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ContentDialog