using System.Windows.Data; using Property = System.Windows.DependencyProperty; namespace MicaSetup.Design.Converters; [ValueConversion(typeof(object), typeof(bool))] public class ValueToBoolConverter : ReversibleValueToBoolConverterBase> { public override T TrueValue { get => (T)this.GetValue(TrueValueProperty); set => this.SetValue(TrueValueProperty, value); } public static readonly Property TrueValueProperty = PropertyHelper.Create>(nameof(TrueValue)); public override T FalseValue { get => (T)this.GetValue(FalseValueProperty); set => this.SetValue(FalseValueProperty, value); } public static readonly Property FalseValueProperty = PropertyHelper.Create>(nameof(FalseValue)); } [ValueConversion(typeof(object), typeof(bool))] public class ValueToBoolConverter : ValueToBoolConverter { }