public override Object ConvertBack(Object value, Type targetType, Object parameter, CultureInfo culture) { if (value != null && value is T t) { if (True.Equals(t)) { return(true); } if (False.Equals(t)) { return(false); } if (Null.Equals(t)) { return(null); } } return(DependencyProperty.UnsetValue); }