onbeforehide event

ContentDialog.onbeforehide event

Applies to Windows and Windows Phone

Occurs before the dialog is hidden. When you call preventDefault on this event, the dialog does not hide.

Syntax


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

contentDialog.onbeforehide = handler;


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event. The detail property of this object contains the following sub-properties:

detail.propertyName

A object that specifies why the dialog was dismissed. This is usually a WinJS.UI.ContentDialog.DismissalResult value, but it may be any object.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ContentDialog

 

 

Show:
© 2017 Microsoft