예제 #1
0
        }                          //to avoid an annoying warning from XAML designer: "No constructor for type 'xyz' has 0 parameters."  Somehow the inherited one doesn't do the trick!?!  I guess it's a reflection buggy.

// ReSharper restore EmptyConstructor

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return(!EmptyToTrue.ReusableConverter(value, targetType, parameter, culture)
        ? Visibility.Visible : Visibility.Collapsed);
        }
예제 #2
0
        }                                   //to avoid an annoying warning from XAML designer: "No constructor for type 'xyz' has 0 parameters."  Somehow the inherited one doesn't do the trick!?!  I guess it's a reflection buggy.

// ReSharper restore EmptyConstructor

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string[] strings = parameter.ToString().Split('|');
            return(EmptyToTrue.ReusableConverter(value, targetType, parameter, culture)
        ? strings[0] : strings[1]);
        }
예제 #3
0
        }                       //to avoid an annoying warning from XAML designer: "No constructor for type 'xyz' has 0 parameters."  Somehow the inherited one doesn't do the trick!?!  I guess it's a reflection buggy.

// ReSharper restore EmptyConstructor

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return(!EmptyToTrue.ReusableConverter(value, targetType, parameter, culture));
        }