Class LocalizedMessageBox
Implements a localized version of System.Windows.MessageBox
Inheritance
Inherited Members
Namespace: Simplic.Studio.UI
Assembly: Simplic.Studio.UI.dll
Syntax
public class LocalizedMessageBox
Methods
| Improve this Doc View SourceShow(String, String, MessageBoxButton, MessageBoxImage)
Displays a message box that has a localized message, localized title bar caption, button, and icon and that returns a result.
Declaration
public static MessageBoxResult Show(string messageBoxTextKey, string captionKey, MessageBoxButton button, MessageBoxImage icon)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageBoxTextKey | A key to a System.String that specifies the text to display. |
System.String | captionKey | A key to a System.String that specifies the title bar caption to display. |
System.Windows.MessageBoxButton | button | A System.Windows.MessageBoxButton value that specifies which button or buttons to display. |
System.Windows.MessageBoxImage | icon | A System.Windows.MessageBoxImage value that specifies the icon to display. |
Returns
Type | Description |
---|---|
System.Windows.MessageBoxResult | MessageBoxResult |
Show(String, String, MessageBoxButton, MessageBoxImage, String[])
Displays a message box that has a localized message, localized title bar caption, button, and icon and that returns a result.
Declaration
public static MessageBoxResult Show(string messageBoxTextKey, string captionKey, MessageBoxButton button, MessageBoxImage icon, params string[] messageBoxFormatValues)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageBoxTextKey | A key to a System.String that specifies the text to display. |
System.String | captionKey | A key to a System.String that specifies the title bar caption to display. |
System.Windows.MessageBoxButton | button | A System.Windows.MessageBoxButton value that specifies which button or buttons to display. |
System.Windows.MessageBoxImage | icon | A System.Windows.MessageBoxImage value that specifies the icon to display. |
System.String[] | messageBoxFormatValues | Format values for message box text key. |
Returns
Type | Description |
---|---|
System.Windows.MessageBoxResult | MessageBoxResult |