Click or drag to resize

BooleanToVisibilityConverter Class

The counterpart of VisibilityToBooleanConverter.
Inheritance Hierarchy

Namespace:  TomsToolbox.Wpf.Converters
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax
[ValueConversionAttribute(typeof(bool), typeof(Visibility))]
public class BooleanToVisibilityConverter : ValueConverter

The BooleanToVisibilityConverter type exposes the following members.

Constructors
  NameDescription
Public methodBooleanToVisibilityConverter
Initializes a new instance of the BooleanToVisibilityConverter class.
Top
Properties
  NameDescription
Public propertyConvertBackErrorValue
Gets or sets the error value, which is returned whenever the value to convert back produces an error; the default is UnsetValue.
(Inherited from ValueConverter.)
Public propertyConvertBackNullValue
Gets or sets the null value, which is returned whenever the value to convert back is null; the default is null.
(Inherited from ValueConverter.)
Public propertyConvertBackUnsetValue
Gets or sets the unset value, which is returned whenever the value to convert back is UnsetValue; the default is UnsetValue.
(Inherited from ValueConverter.)
Public propertyConvertErrorValue
Gets or sets the error value, which is returned whenever the value to convert produces an error; the default is UnsetValue.
(Inherited from ValueConverter.)
Public propertyConvertNullValue
Gets or sets the null value, which is returned whenever the value to convert is null; the default is null.
(Inherited from ValueConverter.)
Public propertyConvertUnsetValue
Gets or sets the unset value, which is returned whenever the value to convert is UnsetValue; the default is UnsetValue.
(Inherited from ValueConverter.)
Public propertyVisibilityWhenBooleanIsFalse
The visibility value to be used when converting from a false boolean value. Defaults to Collapsed.
Top
Methods
  NameDescription
Protected methodConvert
Converts a value.
(Overrides ValueConverterConvert(Object, Type, Object, CultureInfo).)
Protected methodConvertBack
Converts a value.
(Overrides ValueConverterConvertBack(Object, Type, Object, CultureInfo).)
Public methodProvideValue
When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
(Inherited from ValueConverter.)
Top
Fields
  NameDescription
Public fieldStatic memberDefault
The singleton instance of the converter.
Top
Extension Methods
See Also