.NET Framework Class Library for Silverlight
DialogResult Enumeration
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Indicates the return value of a dialog box.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Visual Basic (Declaration)
Public Enumeration DialogResult
Visual Basic (Usage)
Dim instance As DialogResult
C#
public enum DialogResult
Visual C++
public enum class DialogResult
JScript
public enum DialogResult
XAML Attribute Usage
<object property="enumerationvalue"/>
Members

Member nameDescription
NoneThe dialog box return value is None (when nothing is returned from the dialog box).
OKThe dialog box return value is OK (usually sent from a button labeled OK).
CancelThe dialog box return value is Cancel (usually sent from a button labeled Cancel).
AbortThe dialog box return value is Abort (usually sent from a button labeled Abort).
RetryThe dialog box return value is Retry (usually sent from a button labeled Retry).
IgnoreThe dialog box return value is Ignore (usually sent from a button labeled Ignore).
YesThe dialog box return value is Yes (usually sent from a button labeled Yes).
NoThe dialog box return value is No (usually sent from a button labeled No).
Remarks

OpenFileDialog uses DialogResult as its dialog box return value; see ShowDialog.

See Also

Reference

Page view tracker