Table of Contents

Method WithYesNoCancelAll

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

WithYesNoCancelAll(string, string, string[]?)

Configures the message box with "Yes", "No", "Cancel", and "All" buttons, and sets the specified title and message.

public virtual WindowMessageBox WithYesNoCancelAll(string title, string message, string[]? buttonLabels = null)

Parameters

title string

The title to display on the message box.

message string

The message content to display within the message box.

buttonLabels string[]

An optional array of custom labels for the buttons. The array should contain four elements corresponding to the "Yes", "No", "Cancel", and "All" buttons, respectively. If buttonLabels is null or an element is null, the default label for that button is used.

Returns

WindowMessageBox

The current instance of WindowMessageBox configured with the specified settings.