NullToVisibilityConverterConvert Method DW.WPFToolkit Documentation
Converts the null state of an object to a Visibility representation depending on the parameter.

Namespace: DW.WPFToolkit.Converters
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public Object Convert(
	Object value,
	Type targetType,
	Object parameter,
	CultureInfo culture
)

Parameters

value
Type: SystemObject
The object to check for null.
targetType
Type: SystemType
This parameter is not used.
parameter
Type: SystemObject
The NullToVisibilityDirection which defines what to return.
culture
Type: System.GlobalizationCultureInfo
This parameter is not used.

Return Value

Type: Object
Visibility. if the value is not null; otherwise Visibility.Visible. With the NullIsVisible its opposite.

Implements

IValueConverterConvert(Object, Type, Object, CultureInfo)
Remarks

The default of the NullToVisibilityDirection is NullIsCollapsed.
See Also

Reference