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

A color selection converter for translating a bool result into a color.
Inheritance: IValueConverter
显示文件 Open project: garyjohnson/wpnest

Public Methods

Method Description
BrushSelector ( ) : 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

BrushSelector() public method

Initializes a new instance of the ColorSelectorConverter type.
public BrushSelector ( ) : 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