优化更新代码,添加界面功能并整合

This commit is contained in:
GG Z
2025-02-10 20:53:40 +08:00
parent 83b846f15f
commit 978e03a67f
1389 changed files with 95739 additions and 22200 deletions

View File

@@ -0,0 +1,55 @@
namespace WPFluent.Controls;
public class MessageBoxTemplateSettings : DependencyObject
{
internal MessageBoxTemplateSettings()
{
}
private static readonly DependencyPropertyKey IconElementPropertyKey =
DependencyProperty.RegisterReadOnly(nameof(IconElement), typeof(IconElement), typeof(MessageBoxTemplateSettings), null);
public static readonly DependencyProperty IconElementProperty = IconElementPropertyKey.DependencyProperty;
public IconElement IconElement
{
get => (IconElement)GetValue(IconElementProperty);
internal set => SetValue(IconElementPropertyKey, value);
}
public static readonly DependencyProperty OKButtonTextProperty =
DependencyProperty.Register(nameof(OKButtonText), typeof(string), typeof(MessageBoxTemplateSettings), new PropertyMetadata("OK"));
public string OKButtonText
{
get => (string)GetValue(OKButtonTextProperty);
set => SetValue(OKButtonTextProperty, value);
}
public static readonly DependencyProperty YesButtonTextProperty =
DependencyProperty.Register(nameof(YesButtonText), typeof(string), typeof(MessageBoxTemplateSettings), new PropertyMetadata("YES"));
public string YesButtonText
{
get => (string)GetValue(YesButtonTextProperty);
set => SetValue(YesButtonTextProperty, value);
}
public static readonly DependencyProperty NoButtonTextProperty =
DependencyProperty.Register(nameof(NoButtonText), typeof(string), typeof(MessageBoxTemplateSettings), new PropertyMetadata("NO"));
public string NoButtonText
{
get => (string)GetValue(NoButtonTextProperty);
set => SetValue(NoButtonTextProperty, value);
}
public static readonly DependencyProperty CancelButtonTextProperty =
DependencyProperty.Register(nameof(CancelButtonText), typeof(string), typeof(MessageBoxTemplateSettings), new PropertyMetadata("CANCEL"));
public string CancelButtonText
{
get => (string)GetValue(CancelButtonTextProperty);
set => SetValue(CancelButtonTextProperty, value);
}
}