优化更新代码,添加界面功能并整合
This commit is contained in:
37
WPFluent/SimpleContentDialogCreateOptions.cs
Normal file
37
WPFluent/SimpleContentDialogCreateOptions.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
|
||||
|
||||
namespace WPFluent;
|
||||
|
||||
/// <summary>
|
||||
/// Set of properties used when creating a new simple content dialog.
|
||||
/// </summary>
|
||||
public class SimpleContentDialogCreateOptions
|
||||
{
|
||||
/// <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; }
|
||||
}
|
||||
Reference in New Issue
Block a user