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); }
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); }