ContentDialog.DismissalResult property

Gets a value that specifies the reason a dialog was dismissed. This is a static property.

Syntax

var dismissalResult = WinJS.UI.ContentDialog.DismissalResult.none;
-or-
var dismissalResult = WinJS.UI.ContentDialog.DismissalResult.primary;
-or-
var dismissalResult = WinJS.UI.ContentDialog.DismissalResult.secondary;

Property value

Type: WinJS.UI.ContentDialog.DismissalResult

One of the following values:

Value Condition
none

The dialog was dismissed implicitly without the user selecting any of the commands. The user may have dismissed the dialog by hitting the escape key or pressing the hardware back button.

primary

The dialog was dismissed after the primary command button was pressed.

secondary

The dialog was dismissed after the secondary command button was pressed.

 

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ContentDialog

ContentDialog.hide