ComponentOne Basic Library for WPF and Silverlight
DialogResult Property (C1Window)


C1.Silverlight Namespace > C1Window Class : DialogResult Property
Gets or sets the dialog result for the window.
Syntax
'Declaration
 
Public Property DialogResult As System.Windows.MessageBoxResult
'Usage
 
Dim instance As C1Window
Dim value As System.Windows.MessageBoxResult
 
instance.DialogResult = value
 
value = instance.DialogResult
public System.Windows.MessageBoxResult DialogResult {get; set;}
Remarks
Setting this property to a value other than "None" automatically closes the window. Clicking the "Close" button on the window caption bar sets DialogResult to System.Windows.MessageBoxResult.Cancel and then closes the window.
See Also

Reference

C1Window Class
C1Window Members