Gets or sets the dialog result for the window.

Namespace:  C1.WPF
Assembly:  C1.WPF (in C1.WPF.dll)

Syntax

C#
public MessageBoxResult DialogResult { get; set; }
Visual Basic
Public Property DialogResult As MessageBoxResult
	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 Cancel and then closes the window.

See Also