Example #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is null)
            {
                return(Binding.DoNothing);
            }

            if (value is bool b)
            {
                return(Boxes.Bool(b == false));
            }

            return(Binding.DoNothing);
        }
 public static void SetIsVisibleAddButton(DependencyObject target, bool value)
 {
     target.SetValue(IsVisibleAddButtonProperty, Boxes.Bool(value));
 }
 public static void SetIsLeftVerticalScrollBar(DependencyObject target, bool value)
 {
     target.SetValue(IsLeftVerticalScrollBarProperty, Boxes.Bool(value));
 }