C# Class System.Waf.Presentation.Converters.BoolToVisibilityConverter

Value converter that converts a boolean value to and from Visibility enumeration values.
Inheritance: IValueConverter
Afficher le fichier Open project: jbe2277/waf

Méthodes publiques

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

Converts a boolean value into a Visibility enumeration value.

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

Converts a Visibility enumeration value into a boolean value.

Private Methods

Méthode Description
IsInvertParameterSet ( object parameter ) : bool

Method Details

Convert() public méthode

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType Type
parameter object
culture System.Globalization.CultureInfo
Résultat object

Convert() public méthode

Converts a boolean value into a Visibility enumeration value.
public Convert ( object value, Type targetType, object parameter, string culture ) : object
value object The boolean value.
targetType Type The type of the binding target property. This parameter will be ignored.
parameter object Use the string 'Invert' to get an inverted result (Visible and Collapsed are exchanged). /// Do not specify this parameter if the default behavior is desired.
culture string The culture to use in the converter.
Résultat object

ConvertBack() public méthode

public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType Type
parameter object
culture System.Globalization.CultureInfo
Résultat object

ConvertBack() public méthode

Converts a Visibility enumeration value into a boolean value.
public ConvertBack ( object value, Type targetType, object parameter, string culture ) : object
value object The Visibility enumeration value.
targetType Type The type of the binding target property. This parameter will be ignored.
parameter object Use the string 'Invert' to get an inverted result (true and false are exchanged). /// Do not specify this parameter if the default behavior is desired.
culture string The culture to use in the converter.
Résultat object