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

A value converter for collapsing or showing elements based on the bound object's type name. Does not walk the hierarchy - it is explicit to the most specific class for the value.
Inheritance: IValueConverter
显示文件 Open project: garyjohnson/wpnest

Public Methods

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

Convert a value based on CLR type to a Visibility value. Does not walk the type tree, however.

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

Convert back, not supported with this value converter.

Method Details

Convert() public method

Convert a value based on CLR type to a Visibility value. Does not walk the type tree, however.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value instance.
targetType System.Type The target parameter.
parameter object ConverterParameter is the name of the type, /// both short and full names are checked, short name first.
culture System.Globalization.CultureInfo The culture parameter.
return object

ConvertBack() public method

Convert back, not supported with this value converter.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object The value instance.
targetType System.Type The target parameter.
parameter object ConverterParameter is of type Visibility.
culture System The culture parameter.
return object