C# Class Windows.Mvvm.UI.Controls.InvertedBooleanConverter

Convertes boolean values into their negated boolean value (true => false, false => true).
Inheritance: IValueConverter
Afficher le fichier Open project: lecode-official/mvvm-framework

Méthodes publiques

Méthode Description
Convert ( object value, Type targetType, object parameter, string language ) : object

Convertes the boolean value parameter to its inverted boolean value. true converts to false and false converts to true.

ConvertBack ( object value, Type targetType, object parameter, string language ) : object

Convertes the boolean value parameter to its inverted boolean value. true converts to false and false converts to true.

Method Details

Convert() public méthode

Convertes the boolean value parameter to its inverted boolean value. true converts to false and false converts to true.
public Convert ( object value, Type targetType, object parameter, string language ) : object
value object The boolean value that is to be converted.
targetType System.Type The type to which the value is to be converted. In this case it is always .
parameter object A parameter for the conversion. Not used in this converter, so it should always be null.
language string The name of the language, so that parsing can be adjusted to cultural conventions.
Résultat object

ConvertBack() public méthode

Convertes the boolean value parameter to its inverted boolean value. true converts to false and false converts to true.
public ConvertBack ( object value, Type targetType, object parameter, string language ) : object
value object The visibility value that is to be converted.
targetType System.Type The type to which the value is to be converted. In this case it is always .
parameter object A parameter for the conversion. Not used in this converter, so it should always be null.
language string The name of the language, so that parsing can be adjusted to cultural conventions.
Résultat object