ThemedWindow.ShowDialog() Method
Displays the ThemedWindowDialog. A result returned when the window is closed.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v18.2.dll
Declaration
Returns
Type | Description |
---|---|
Nullable<Boolean> | true, if an end user clicks OK (Yes) in the dialog box; false, if an end user clicks No (Cancel), presses the Esc or the WindowCloseButton [x]; otherwise, null. |
Remarks
The following code snippet demonstrates how to display the ThemedWindowDialog without dialog buttons on the button click:
void Button_Click(object sender, RoutedEventArgs e) {
ThemedWindow themedWindow = new ThemedWindow() { Title = "ThemedWindowDialog" };
themedWindow.ShowDialog();
}
The following code snippet shows how to display the ThemedWindowDialog with the OK and Cancel dialog buttons on the button click:
void Button_Click(object sender, RoutedEventArgs e) {
ThemedWindow themedWindow = new ThemedWindow() { Title = "ThemedWindowDialog" };
themedWindow.ShowDialog(MessageBoxButton.OKCancel);
}
Note
You should specify the dialog button’s DialogResult property. Refer to Dialog Boxes Overview for more information on the Microsoft dialog boxes.
See Also