Intersoft ClientUI Documentation
DialogResult Property (UXDialogBox)
Example 



Gets or sets the value that represents the result of the dialog box.
Syntax
<CategoryAttribute("Common Properties")>
Public Property DialogResult As DialogResult
Dim instance As UXDialogBox
Dim value As DialogResult
 
instance.DialogResult = value
 
value = instance.DialogResult
[CategoryAttribute("Common Properties")]
public DialogResult DialogResult {get; set;}
[CategoryAttribute("Common Properties")]
public:
property DialogResult DialogResult {
   DialogResult get();
   void set (    DialogResult value);
}
Remarks
Since the dialog box is mostly used to gather user input, UXDialogBox provides a consistent way to obtain the result of the dialog box through DialogResult enumeration. While you can explicitly set the DialogResult property of the dialog box in the Closing event, ClientUI provides a more consistent technique that streamlines the DialogResult value through the properties of ClientUI button controls such as UXButton, UXToolBarButton, and more.
Example
This following example shows how to get the dialog result of a UXDialogBox in the callback of the ShowDialog method.
private void UXButton1_Click(object sender, RoutedEventArgs e)
{
    EditDialogBox dialogBox = new EditDialogBox();
    
    dialogBox.ShowDialog(
        
        // show dialog box in standalone mode
        null,

        // callback handler for the close event
        (dialogResult) =>
        {
            if (dialogResult == Intersoft.Client.Framework.DialogResult.OK)
            {
                MessageBox.Show("The dialog box result is OK");
            }
        });
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXDialogBox Class
UXDialogBox Members
Window and Dialog Boxes Overview

Send Feedback