MessageBoxShowMixins.MessageBoxShow(ICanShowMessages?, string, string, MessageBoxButton) method¶
Defined in
Type: MessageBoxShowMixins
Namespace: CrissCross.WPF.UI
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public static Task<MessageBoxResult> MessageBoxShow(this ICanShowMessages? requester, string bbcode, string title = "", MessageBoxButton messageBoxButton = 0) - 2.
public static Task<CustomMessageBoxResult> MessageBoxShow(this ICanShowMessages? requester, string bbcode, string title, string custom0, string? custom1 = null, string? custom2 = null, string? custom3 = null, string? custom4 = null, string? custom5 = null, string? custom6 = null, string? custom7 = null, string? custom8 = null, string? custom9 = null)
1. Overload¶
public static Task<MessageBoxResult> MessageBoxShow(this ICanShowMessages? requester, string bbcode, string title = "", MessageBoxButton messageBoxButton = 0)
Summary: Displays a dismiss-able message-box. Click outside of the message area to dismiss.
Parameters
| Name | Type | Description |
|---|---|---|
requester | [ICanShowMessages?](# | The requester. |
bbcode | string | The text. Use BBCode to style the text. |
title = "" | string | The title. |
messageBoxButton = 0 | MessageBoxButton | The message box button. |
Returns: Task
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | owner. |
| System.InvalidOperationException | No listener found for message box. |
2. Overload¶
public static Task<CustomMessageBoxResult> MessageBoxShow(this ICanShowMessages? requester, string bbcode, string title, string custom0, string? custom1 = null, string? custom2 = null, string? custom3 = null, string? custom4 = null, string? custom5 = null, string? custom6 = null, string? custom7 = null, string? custom8 = null, string? custom9 = null)
Summary: Displays a dismiss-able message-box. Click outside of the message area to dismiss, configure button text in custom buttons.
Parameters
| Name | Type | Description |
|---|---|---|
requester | [ICanShowMessages?](# | The requester. |
bbcode | string | The bbcode. |
title | string | The title. |
custom0 | string | The custom0 button text. |
custom1 = null | string? | The custom1 button text. |
custom2 = null | string? | The custom2 button text. |
custom3 = null | string? | The custom3 button text. |
custom4 = null | string? | The custom4 button text. |
custom5 = null | string? | The custom5 button text. |
custom6 = null | string? | The custom6 button text. |
custom7 = null | string? | The custom7 button text. |
custom8 = null | string? | The custom8 button text. |
custom9 = null | string? | The custom9 button text. |
Returns: Task
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | owner. |
| System.InvalidOperationException | No listener found for message box. |