public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ConverterHelper.GetConditionalVisibility((bool)value, parameter));
 }
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            bool show = values.Cast <bool>().Aggregate(true, (x, y) => x && y);

            return(ConverterHelper.GetConditionalVisibility(show, parameter));
        }
Пример #3
0
 public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ConverterHelper.GetConditionalVisibility(!string.IsNullOrEmpty(value as string), parameter));
 }