Ejemplo n.º 1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool?booleanValue = ConverterHelper.GetNullableBooleanValue(value);

            if (booleanValue != null)
            {
                booleanValue = !booleanValue.Value;
            }
            if (targetType == typeof(bool))
            {
                return(booleanValue ?? true);
            }
            return(booleanValue);
        }
Ejemplo n.º 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool boolean = ConverterHelper.NumericToBoolean(value);

            return(ConverterHelper.BooleanToVisibility(boolean, Inverse, HiddenInsteadOfCollapsed));
        }
Ejemplo n.º 3
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ConverterHelper.NumericToBoolean(value));
 }