Example #1
0
        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);
                }
            }

            return(DependencyProperty.UnsetValue);
        }