Exemple #1
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (NippleConverter != null)
     {
         value = NippleConverter.Convert(value, targetType, parameter, culture);
     }
     if ((bool)value)
     {
         return(Visibility.Visible);
     }
     return(Visibility.Collapsed);
 }
Exemple #2
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (NippleConverter != null)
     {
         value = NippleConverter.Convert(value, targetType, parameter, culture);
     }
     if (value.ToString() == parameter.ToString() ||
         (value != null && value.Equals(parameter)))
     {
         return(false);
     }
     return(true);
 }