Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BooleanToVisibilityConverter.Convert Method

Converts a Boolean value to a Visibility enumeration value.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

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

Parameters

value
Type: System.Object

The Boolean value to convert. This value can be a standard Boolean value or a nullable Boolean value.

targetType
Type: System.Type

This parameter is not used.

parameter
Type: System.Object

This parameter is not used.

culture
Type: System.Globalization.CultureInfo

This parameter is not used.

Return Value

Type: System.Object
Visibility.Visible if value is true; otherwise, Visibility.Collapsed.

Implements

IValueConverter.Convert(Object, Type, Object, CultureInfo)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft