-
Notifications
You must be signed in to change notification settings - Fork 3
MessageDialog
Back to home | Back to Reference | View raw text
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi
SolidShineUi.MessageDialog[[MessageDialog]]
SolidShineUi.FlatWindow[[FlatWindow]]
end
subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
end
System.Windows.Markup.IComponentConnector --> SolidShineUi.MessageDialog
SolidShineUi.FlatWindow --> SolidShineUi.MessageDialog
Type | Name | Methods |
---|---|---|
string |
CancelButtonText Get or set the text to display in the Cancel button. If empty, the button will not be displayed. |
get, set |
string |
CheckBoxText Get or set the text to display with the checkbox. If empty, the checkbox will not be displayed. |
get, set |
bool |
CheckBoxValue Get or set the checked state of the checkbox. Use the checkbox to display a "Remember my choice"-style option. |
get, set |
ColorScheme |
ColorScheme The color scheme to use with the message dialog. |
get, set |
MessageDialogResult |
DialogResult Get the result of the message dialog, indicating which button the user pressed. |
get |
string |
DiscardButtonText Get or set the text to display in the Discard button. If empty, the button will not be displayed. |
get, set |
string |
ExtraButton1Text Get or set the text to display in the first extra button. If empty, the button will not be displayed. |
get, set |
string |
ExtraButton2Text Get or set the text to display in the second extra button. If empty, the button will not be displayed. |
get, set |
string |
ExtraButton3Text Get or set the text to display in the third extra button. If empty, the button will not be displayed. |
get, set |
MessageDialogImage |
Image Get or set the image to display with the message. |
get, set |
string |
Message Get or set the text to display for the message. |
get, set |
string |
OkButtonText Get or set the text to display in the OK button. If empty, the button will not be displayed (unless the other buttons are also not displayed, in which case this one will be). |
get, set |
Returns | Name |
---|---|
void |
ApplyColorScheme (... )Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control. |
void |
InitializeComponent ()InitializeComponent |
MessageDialogResult |
ShowDialog (... )Display this message dialog. Use the properties such as OkButtonText or CancelButtonText and Message to control the appearance of the message dialog. |
Returns | Name |
---|---|
Delegate |
_CreateDelegate (Type delegateType, string handler) |
Returns | Name |
---|---|
void |
OnColorSchemeChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)Perform an action when the ColorScheme property has changed. Primarily used internally. |
IComponentConnector
-
FlatWindow
public MessageDialog()
Create a new MessageDialog.
public MessageDialog(ColorScheme cs)
Type | Name | Description |
---|---|---|
ColorScheme |
cs | The ColorScheme to use for this MessageDialog. |
Create a new MessageDialog, with the ColorScheme property preset.
public void ApplyColorScheme(ColorScheme cs)
Type | Name | Description |
---|---|---|
ColorScheme |
cs | The color scheme to apply. |
Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control.
public void ApplyColorScheme(HighContrastOption hco)
Type | Name | Description |
---|---|---|
HighContrastOption |
hco | The high-contast color scheme to apply. |
Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control.
public static void OnColorSchemeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Type | Name | Description |
---|---|---|
DependencyObject |
d | The object containing the property that changed. |
DependencyPropertyChangedEventArgs |
e | Event arguments about the property change. |
Perform an action when the ColorScheme property has changed. Primarily used internally.
public MessageDialogResult ShowDialog()
Display this message dialog. Use the properties such as OkButtonText
or CancelButtonText
and Message
to control the appearance of the message dialog.
public MessageDialogResult ShowDialog(string message, ColorScheme colorScheme, Window owner, string title, bool showTwoBottomButtons, MessageDialogImage image, MessageDialogResult defaultButton, string customOkButtonText, string customCancelButtonText, string extraButton1Text, string extraButton2Text, string extraButton3Text, string checkBoxText)
Type | Name | Description |
---|---|---|
string |
message | The message to display. |
ColorScheme |
colorScheme | The color scheme to use with the dialog. Use null if already set via property. |
Window |
owner | The owner window of this dialog. Use null if already set via property. |
string |
title | The window title for this dialog. Use null if already set via property. |
bool |
showTwoBottomButtons | Determine if one or two buttons should be shown (either [OK], or [OK] and [Cancel]). If false, only OK button is displayed. |
MessageDialogImage |
image | The image to display with this dialog. |
MessageDialogResult |
defaultButton | The button to have selected by default when the dialog opens. (DOESN'T CURRENTLY WORK) |
string |
customOkButtonText | The text to use in the OK button. Use null if already set via property. |
string |
customCancelButtonText | The text to use in the Cancel button. Use null if already set via property. |
string |
extraButton1Text | The text to use in the first extra button. If this is set to a null or empty string, this button will not be displayed. |
string |
extraButton2Text | The text to use in the second extra button. If this is set to a null or empty string, this button will not be displayed. |
string |
extraButton3Text | The text to use in the third extra button. If this is set to a null or empty string, this button will not be displayed. |
string |
checkBoxText | The text to use in the check box. If this is set to a null or empty string, the check box will not be displayed. |
Display this message dialog. This is an obsolete method, please use one of the other ones.
public MessageDialogResult ShowDialog(string message, ColorScheme colorScheme, Window owner, string title, MessageDialogButtonDisplay buttonDisplay, MessageDialogImage image, MessageDialogResult defaultButton, string customOkButtonText, string customCancelButtonText, string customDiscardButtonText, string extraButton1Text, string extraButton2Text, string extraButton3Text, string checkBoxText)
Type | Name | Description |
---|---|---|
string |
message | The message to display. |
ColorScheme |
colorScheme | The color scheme to use with the dialog. Use null if already set via property. |
Window |
owner | The owner window of this dialog. Use null if already set via property. |
string |
title | The window title for this dialog. Use null if already set via property. |
MessageDialogButtonDisplay |
buttonDisplay | Determine how many buttons should be displayed at the bottom of the dialog, either [OK], [OK] and [Cancel], or [OK] [Discard] and [Cancel]. |
MessageDialogImage |
image | The image to display with this dialog. |
MessageDialogResult |
defaultButton | The button to have selected by default when the dialog opens. (DOESN'T CURRENTLY WORK) |
string |
customOkButtonText | The text to use in the OK button. Use null if already set via property. |
string |
customCancelButtonText | The text to use in the Cancel button. Use null if already set via property. |
string |
customDiscardButtonText | The text to use in the Discard button. Use null if already set via property. |
string |
extraButton1Text | The text to use in the first extra button. If this is set to a null or empty string, this button will not be displayed. |
string |
extraButton2Text | The text to use in the second extra button. If this is set to a null or empty string, this button will not be displayed. |
string |
extraButton3Text | The text to use in the third extra button. If this is set to a null or empty string, this button will not be displayed. |
string |
checkBoxText | The text to use in the check box. If this is set to a null or empty string, the check box will not be displayed. |
Display this message dialog.
public virtual void InitializeComponent()
InitializeComponent
internal Delegate _CreateDelegate(Type delegateType, string handler)
Type | Name | Description |
---|---|---|
Type |
delegateType | |
string |
handler |
public ColorScheme ColorScheme { get; set; }
The color scheme to use with the message dialog.
public string OkButtonText { get; set; }
Get or set the text to display in the OK button. If empty, the button will not be displayed (unless the other buttons are also not displayed, in which case this one will be).
public string CancelButtonText { get; set; }
Get or set the text to display in the Cancel button. If empty, the button will not be displayed.
public string DiscardButtonText { get; set; }
Get or set the text to display in the Discard button. If empty, the button will not be displayed.
public string ExtraButton1Text { get; set; }
Get or set the text to display in the first extra button. If empty, the button will not be displayed.
public string ExtraButton2Text { get; set; }
Get or set the text to display in the second extra button. If empty, the button will not be displayed.
public string ExtraButton3Text { get; set; }
Get or set the text to display in the third extra button. If empty, the button will not be displayed.
public MessageDialogResult DialogResult { get; }
Get the result of the message dialog, indicating which button the user pressed.
public string Message { get; set; }
Get or set the text to display for the message.
public string CheckBoxText { get; set; }
Get or set the text to display with the checkbox. If empty, the checkbox will not be displayed.
public bool CheckBoxValue { get; set; }
Get or set the checked state of the checkbox. Use the checkbox to display a "Remember my choice"-style option.
public MessageDialogImage Image { get; set; }
Get or set the image to display with the message.
Generated with ModularDoc