ComponentOne FinancialChart for WPF
C1.WPF Namespace / C1Window Class / DialogResult Property



In This Topic
    DialogResult Property
    In This Topic
    Gets or sets the dialog result for the window.
    Syntax
    'Declaration
     
    
    Public Property DialogResult As MessageBoxResult
    'Usage
     
    
    Dim instance As C1Window
    Dim value As MessageBoxResult
     
    instance.DialogResult = value
     
    value = instance.DialogResult
    public MessageBoxResult DialogResult {get; set;}
    public:
    property MessageBoxResult DialogResult {
       MessageBoxResult get();
       void set (    MessageBoxResult value);
    }
    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