Selects a Visibility according to whether the input is of a specified type.
Namespace: Mindscape.SilverlightElementsAssembly: Mindscape.SilverlightElements (in Mindscape.SilverlightElements.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
public Object Convert( Object value, Type targetType, Object parameter, CultureInfo culture ) |
Visual Basic |
---|
Public Function Convert ( _ value As Object, _ targetType As Type, _ parameter As Object, _ culture As CultureInfo _ ) As Object |
Visual C++ |
---|
public: virtual Object^ Convert( Object^ value, Type^ targetType, Object^ parameter, CultureInfo^ culture ) sealed |
Parameters
- value
- Type: System..::..Object
The value produced by the binding source.
- targetType
- Type: System..::..Type
The type of the binding target property.
- parameter
- Type: System..::..Object
The converter parameter to use.
- culture
- Type: System.Globalization..::..CultureInfo
The culture to use in the conversion.
Return Value
Visibility.Visible if the object's type name is equal to the TypeName string; otherwise Visibility.Collapsed.Implements
IValueConverter..::..Convert(Object, Type, Object, CultureInfo)
Remarks
The type check is for an exact match, i.e. equality of type names. Inheritance
is not considered; derived types will not match.