Convert Method
Collapse the table of content
Expand the table of content

BooleanToVisibilityConverter.Convert Method (Object, Type, Object, CultureInfo)

 

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft