Click or drag to resize
EmptyStringToVisibilityConverterConvert Method
Converts a String to a Visibility enumeration value, depending on whether the String is empty.

Namespace: Kjs.AppLife.Update.Wpf.Converters
Assembly: Kjs.AppLife.Update.Wpf (in Kjs.AppLife.Update.Wpf.dll) Version: 5.1.0.0 (5.1.0.0)
Syntax
public Object Convert(
	Object value,
	Type targetType,
	Object parameter,
	CultureInfo culture
)

Parameters

value
Type: SystemObject
The String to convert.
targetType
Type: SystemType
This parameter is not used.
parameter
Type: SystemObject
If this parameter is the string "Collapsed", the converter will return Collapsed instead of Hidden for an empty string.
culture
Type: System.GlobalizationCultureInfo
This parameter is not used.

Return Value

Type: Object
Visible if value contains text, or Hidden if value is or an empty String. If parameter is the string "Collapsed", the converter will return Collapsed instead of Hidden.

Implements

IValueConverterConvert(Object, Type, Object, CultureInfo)
See Also