Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / C1Window Class / DialogResult Property

In This Topic
    DialogResult Property (C1Window)
    In This Topic
    Gets or sets the dialog result for the window.
    Syntax
    'Declaration
     
    
    Public Property DialogResult As MessageBoxResult
    public 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