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

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

Public Methods

Method 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

Method Description
IsInvertParameterSet ( object parameter ) : bool

Method Details

Convert() public method

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

Convert() public method

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.
return object

ConvertBack() public method

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

ConvertBack() public method

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.
return object