2025-02-10 20:53:40 +08:00
|
|
|
|
|
|
|
|
|
|
namespace WPFluent;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Set of properties used when creating a new simple content dialog.
|
|
|
|
|
|
/// </summary>
|
2025-05-05 17:04:06 +08:00
|
|
|
|
public class SimpleContentDialogOptions
|
2025-02-10 20:53:40 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the name of the button that closes the content dialog.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public required string CloseButtonText { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets a message displayed in the content dialog.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public required object Content { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the default text of the primary button at the bottom of the content dialog. <para>If not added, or
|
|
|
|
|
|
/// <see cref="string.Empty"/>, it will not be displayed.</para>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string PrimaryButtonText { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the default text of the secondary button at the bottom of the content dialog. <para>If not added,
|
|
|
|
|
|
/// or <see cref="string.Empty"/>, it will not be displayed.</para>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string SecondaryButtonText { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets a name at the top of the content dialog.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public required string Title { get; set; }
|
|
|
|
|
|
}
|