Skip to content

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

NameTypeDescription
requester[ICanShowMessages?](#The requester.
bbcodestringThe text. Use BBCode to style the text.
title = ""stringThe title.
messageBoxButton = 0MessageBoxButtonThe message box button.

Returns: Task -- Task of MessageBoxResult.

Exceptions

TypeCondition
System.ArgumentNullExceptionowner.
System.InvalidOperationExceptionNo 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

NameTypeDescription
requester[ICanShowMessages?](#The requester.
bbcodestringThe bbcode.
titlestringThe title.
custom0stringThe custom0 button text.
custom1 = nullstring?The custom1 button text.
custom2 = nullstring?The custom2 button text.
custom3 = nullstring?The custom3 button text.
custom4 = nullstring?The custom4 button text.
custom5 = nullstring?The custom5 button text.
custom6 = nullstring?The custom6 button text.
custom7 = nullstring?The custom7 button text.
custom8 = nullstring?The custom8 button text.
custom9 = nullstring?The custom9 button text.

Returns: Task -- A Value.

Exceptions

TypeCondition
System.ArgumentNullExceptionowner.
System.InvalidOperationExceptionNo listener found for message box.