using System.ComponentModel;
using System.Windows;
namespace HKW.WPF.Converters;
///
/// 转换至布尔转换器基础
///
public abstract class MultiValueToBoolConverter : MultiValueConverterBase
where T : MultiValueToBoolConverter
{
///
///
///
public static readonly DependencyProperty TargetBoolValueProperty = DependencyProperty.Register(
nameof(TargetBoolValue),
typeof(bool),
typeof(T),
new PropertyMetadata(false)
);
///
/// 指定值
///
[DefaultValue(false)]
public bool TargetBoolValue
{
get => (bool)GetValue(TargetBoolValueProperty);
set => SetValue(TargetBoolValueProperty, value);
}
}