Files
Shrlalgo.RvKits/WPFluent/SimpleContentDialogOptions.cs

36 lines
1.2 KiB
C#
Raw Normal View History


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
{
/// <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; }
}