ConvertBooleanToVisibility

function ConvertBooleanToVisibility(value: boolean, falseValue: 'Hidden' | 'Collapsed' = 'Hidden'): Visibility

The function ConvertBooleanToVisibility converts a Boolean value to a value of the enumerator "Visibility".

Parameter

Name

Type

Description

value

boolean

The Boolean value to be converted. Only a binding makes sense at this point.

falseValue

Visibility

The value specified as falseValue depending on the transferred Boolean value.

Return value

Type

Description

Visibility

The visibility depending on the Boolean value.

NuGet package: Beckhoff.TwinCAT.HMI.Functions

ConvertBooleanToVisibility 1:

NuGet packages are available from version 1.12.

ConvertBooleanToVisibility 2:

Available from 1.8