using System.ComponentModel;
using System.Windows;
namespace HKW.WPF.Converters;
///
/// 可反转值转换器
///
public abstract class CanInverterValueConverter : ValueConverterBase
where T : CanInverterValueConverter
{
///
///
///
public static readonly DependencyProperty InverterProperty = DependencyProperty.Register(
nameof(Inverter),
typeof(bool),
typeof(AllIsBoolToVisibilityConverter),
new PropertyMetadata(false)
);
///
/// 反转
///
[DefaultValue(false)]
public bool Inverter
{
get => (bool)GetValue(InverterProperty);
set => SetValue(InverterProperty, value);
}
}