C# Class Microsoft.Silverlight.Testing.Client.ColorSelectorConverter

A color selection converter for translating a bool result into a color.
Inheritance: IValueConverter
ファイルを表示 Open project: garyjohnson/wpnest

Public Methods

Method Description
ColorSelectorConverter ( ) : System

Initializes a new instance of the ColorSelectorConverter type.

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

Convert a boolean value to a Color value.

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

Support 2-way databinding of the VisibilityConverter, converting Visibility to a boolean.

Method Details

ColorSelectorConverter() public method

Initializes a new instance of the ColorSelectorConverter type.
public ColorSelectorConverter ( ) : System
return System

Convert() public method

Convert a boolean value to a Color value.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value.
targetType System.Type The target parameter.
parameter object ConverterParameter is of type Visibility.
culture System.Globalization.CultureInfo The culture parameter.
return object

ConvertBack() public method

Support 2-way databinding of the VisibilityConverter, converting Visibility to a boolean.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value.
targetType System.Type The target parameter.
parameter object ConverterParameter is of type Visibility.
culture System.Globalization.CultureInfo The culture parameter.
return object