Click or drag to resize

ValueConverter Class

A base class for value converters performing pre-check of value and error handling.
Inheritance Hierarchy
SystemObject
  TomsToolbox.Wpf.ConvertersValueConverter
    More...

Namespace:  TomsToolbox.Wpf.Converters
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 1.0.64.0 (1.0.64.0)
Syntax
public abstract class ValueConverter : IValueConverter

The ValueConverter type exposes the following members.

Constructors
  NameDescription
Protected methodValueConverter
Initializes a new instance of the ValueConverter 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.
Public propertyConvertBackNullValue
Gets or sets the null value, which is returned whenever the value to convert back is null; the default is null.
Public propertyConvertBackUnsetValue
Gets or sets the unset value, which is returned whenever the value to convert back is UnsetValue; the default is UnsetValue.
Public propertyConvertErrorValue
Gets or sets the error value, which is returned whenever the value to convert produces an error; the default is UnsetValue.
Public propertyConvertNullValue
Gets or sets the null value, which is returned whenever the value to convert is null; the default is null.
Public propertyConvertUnsetValue
Gets or sets the unset value, which is returned whenever the value to convert is UnsetValue; the default is UnsetValue.
Top
Methods
  NameDescription
Protected methodConvert
Converts a value.
Protected methodConvertBack
Converts a value.
Top
Extension Methods
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.)
Public Extension MethodTraceError
Traces an error for the specified converter.
(Defined by ValueConverterExtensions.)
Top
See Also
Inheritance Hierarchy
SystemObject
  TomsToolbox.Wpf.ConvertersValueConverter
    TomsToolbox.Wpf.ConvertersBinaryOperationConverter
    TomsToolbox.Wpf.ConvertersBooleanToVisibilityConverter
    TomsToolbox.Wpf.ConvertersColorNameToBrushConverter
    TomsToolbox.Wpf.ConvertersConfirmedCommandConverter
    TomsToolbox.Wpf.ConvertersCoordinatesToPointConverter
    TomsToolbox.Wpf.ConvertersDoubleToThicknessConverter
    TomsToolbox.Wpf.ConvertersEnumToBooleanConverter
    TomsToolbox.Wpf.ConvertersEnumToValuesConverter
    TomsToolbox.Wpf.ConvertersImageSourceToImageConverter
    TomsToolbox.Wpf.ConvertersObjectToAttributeConverterT
    TomsToolbox.Wpf.ConvertersReplaceTextConverter
    TomsToolbox.Wpf.ConvertersStringToObjectConverter
    TomsToolbox.Wpf.ConvertersThicknessMultiplyConverter
    TomsToolbox.Wpf.ConvertersUnaryOperationConverter
    TomsToolbox.Wpf.ConvertersVisibilityToBooleanConverter