Class ContentDialogButtonBuilder
Represents a builder that can be used to create buttons inside content dialogs.
public class ContentDialogButtonBuilder
- Inheritance
-
objectContentDialogButtonBuilder
Methods
WithAction(Action)
Changes action that is called when the button is clicked.
public ContentDialogButtonBuilder WithAction(Action action)
Parameters
actionActionThe 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
commandICommandThe 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
commandParameterobjectThe 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
textstringThe new text.
Returns
- ContentDialogButtonBuilder
The notification builder that can be used to further build the button.