C# Class System.Windows.Controls.TypeToBooleanConverter

Converts a type to a boolean value, if the parameter has the same value as the type.
Inheritance: IValueConverter
Afficher le fichier Open project: lecode-official/mvvm-framework

Méthodes publiques

Méthode Description
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convertes the value parameter to a boolean value.

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Converts a boolean value back to a type.

Method Details

Convert() public méthode

Convertes the value parameter to a boolean value.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The type that is to be converted.
targetType Type The type to which the value is to be converted. In this case it is always boolean.
parameter object A parameter that determines the value to which the type has to be equal to return true.
culture System.Globalization.CultureInfo The culture information of the current culture, so that parsing can be adjusted to cultural conventions.
Résultat object

ConvertBack() public méthode

Converts a boolean value back to a type.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value that is to be converted.
targetType Type The type to which the value is to be converted. In this case it is a type.
parameter object A parameter whose type is returned.
culture System.Globalization.CultureInfo The culture information of the current culture, so that parsing can be adjusted to cultural conventions.
Résultat object