Table of Contents

Class ContentDialogButtonBuilder

Namespace
Artemis.UI.Shared.Services.Builders
Assembly
Artemis.UI.Shared.dll

Represents a builder that can be used to create buttons inside content dialogs.

public class ContentDialogButtonBuilder
Inheritance
object
ContentDialogButtonBuilder

Methods

WithAction(Action)

Changes action that is called when the button is clicked.

public ContentDialogButtonBuilder WithAction(Action action)

Parameters

action Action

The action to call when the button is clicked.

Returns

ContentDialogButtonBuilder

The builder that can be used to further build the button.

WithCommand(ICommand?)

Changes command that is called when the button is clicked.

public ContentDialogButtonBuilder WithCommand(ICommand? command)

Parameters

command ICommand

The command to call when the button is clicked.

Returns

ContentDialogButtonBuilder

The builder that can be used to further build the button.

WithCommandParameter(object?)

Changes parameter of the command that is called when the button is clicked.

public ContentDialogButtonBuilder WithCommandParameter(object? commandParameter)

Parameters

commandParameter object

The parameter of the command to call when the button is clicked.

Returns

ContentDialogButtonBuilder

The builder that can be used to further build the button.

WithText(string?)

Changes text message of the button.

public ContentDialogButtonBuilder WithText(string? text)

Parameters

text string

The new text.

Returns

ContentDialogButtonBuilder

The notification builder that can be used to further build the button.