Exemple #1
0
 protected override ConversionResult <bool> ConvertBack(ViewStates value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ConversionResult <bool> .SetValue(value == ViewStates.Visible));
 }
Exemple #2
0
 protected override ConversionResult <bool> ConvertBack(bool value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ConversionResult <bool> .SetValue(!value));
 }
Exemple #3
0
 protected override ConversionResult <ViewStates> Convert(bool value, Type targetType, object parameter, CultureInfo culture)
 {
     return(ConversionResult <ViewStates> .SetValue(value?ViewStates.Visible : ViewStates.Gone));
 }
Exemple #4
0
 protected virtual ConversionResult <TSourceValue> ConvertBack([CanBeNull] TTargetValue value, [NotNull] Type targetType, [CanBeNull] object parameter, [NotNull] CultureInfo culture)
 {
     return(ConversionResult <TSourceValue> .UnsetValue());
 }