Class InputDialog
Represents a dialog with an input field.
public class InputDialog : IDialog<InputDialogResponse>, IDialog
- Inheritance
-
InputDialog
- Implements
- Inherited Members
Constructors
InputDialog()
Initializes a new instance of the InputDialog class.
public InputDialog()
InputDialog(string?, string?, string?, string?)
Initializes a new instance of the InputDialog class.
public InputDialog(string? caption, string? content, string? button1, string? button2 = null)
Parameters
captionstringThe caption of the input dialog.
contentstringThe content of the input dialog.
button1stringThe left button text of the input dialog.
button2stringThe right button text of the input dialog.
Properties
Button1
Gets or sets the text on the left button of this input dialog.
public string? Button1 { get; set; }
Property Value
Button2
Gets or sets the text on the right button of this input dialog. If the value is null, the right button is hidden.
public string? Button2 { get; set; }
Property Value
Caption
Gets or sets the caption of this input dialog.
public string? Caption { get; set; }
Property Value
Content
Gets or sets the text above the input field in this dialog.
public string? Content { get; set; }
Property Value
IsPassword
Gets or sets a value indicating whether the input is a password.
public bool IsPassword { get; set; }
Property Value
Methods
Translate(DialogResult)
Translates the specified dialogResult to a specialized response of type InputDialogResponse.
public InputDialogResponse Translate(DialogResult dialogResult)
Parameters
dialogResultDialogResultThe dialog result to translate.
Returns
- InputDialogResponse
The translated dialog result.