Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HtmlWindow.Confirm Method


Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

public bool Confirm(
	string confirmText


Type: System.String
The text to display.

Return Value

Type: System.Boolean
true if the user clicked the OK button; otherwise, false.

See the confirm method in the dynamic HTML (DHTML) documentation for information about the JavaScript confirm method.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft