Intersoft.Client.UI.Aqua.UXDesktop Namespace > UXMessageBox Class : Show Method |
Overload | Description |
---|---|
Show(IWindow,String,Action<DialogResult>) | Displays a message box with simple message in front of the specified window. |
Show(IWindow,String,String,Action<DialogResult>) | Displays a message box with simple message and title bar caption in front of the specified window. |
Show(IWindow,String,String,MessageBoxButton,Action<DialogResult>) | Displays a message box in front of the specified window. The message box displays a message, title bar caption and predefined buttons. |
Show(IWindow,String,String,MessageBoxButton,MessageBoxImage,Action<DialogResult>) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button and icon; and it also returns a result. |
Show(IWindow,String,String,MessageBoxButton,MessageBoxImage,DialogResult,Action<DialogResult>) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, and icon; and it also returns a result. |
Show(IWindow,String,String,MessageBoxButton,MessageBoxImage,DialogResult,MessageBoxOptions,Action<DialogResult>) | Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, icon and options; and it also returns a result. |
Show() | Displays the window. (Inherited from Intersoft.Client.UI.Aqua.UXDesktop.UXWindow) |
Show(FrameworkElement) | Displays the window and attach it to a specified owner. (Inherited from Intersoft.Client.UI.Aqua.UXDesktop.UXWindow) |
private void UXButton2_Click(object sender, RoutedEventArgs e) { UXMessageBox.Show( // owner of the message box null, // message "Do you want to save this document before the application closes?", // caption "Notepad", // predefined buttons Intersoft.Client.UI.Aqua.UXDesktop.MessageBoxButton.YesNoCancel, // predefined image MessageBoxImage.Question, // callback handler for the close event (dialogResult) => { if (dialogResult == Intersoft.Client.Framework.DialogResult.OK) { // save the document } } ); }
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