Class MessageDialog
Represents a dialog with a message.
public class MessageDialog : IDialog<MessageDialogResponse>, IDialog
- Inheritance
-
MessageDialog
- Implements
- Inherited Members
Constructors
MessageDialog(string?, string?, string?, string?)
Initializes a new instance of the MessageDialog class.
public MessageDialog(string? caption, string? content, string? button1, string? button2 = null)
Parameters
captionstringThe caption.
contentstringThe content.
button1stringThe text on the left button.
button2stringThe text on the right button. If the value is null, the right button is hidden.
Properties
Button1
Gets or sets the text on the left button of this message dialog.
public string? Button1 { get; set; }
Property Value
Button2
Gets or sets the text on the right button of this message 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 message dialog.
public string? Caption { get; set; }
Property Value
Content
Gets or sets the content of this message dialog.
public string? Content { get; set; }