public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            NumericComparatorToBooleanConverter conv1 = new NumericComparatorToBooleanConverter();
            bool bValue = (bool)conv1.Convert(new object[] { value, 1 }, targetType, 5, culture);

            BoolToVisibilityConverter conv2 = new BoolToVisibilityConverter();

            return(conv2.Convert(bValue, targetType, parameter, culture));
        }
Ejemplo n.º 2
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            ObjectToBooleanConverter conv1 = new ObjectToBooleanConverter();
            bool bValue = (bool)conv1.Convert(value, targetType, parameter, culture);

            BoolToVisibilityConverter conv2 = new BoolToVisibilityConverter();

            return(conv2.Convert(bValue, targetType, null, culture));
        }