Class
NumberToVisibilityConverter

Represents a converter that converts a number value to Visibility value.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class NumberToVisibilityConverter : IValueConverter

Inheritance: objectNumberToVisibilityConverter

Implements: IValueConverter

Constructors

NumberToVisibilityConverter()

Declaration

cs-api-definition
public NumberToVisibilityConverter()

Methods

Convert(object, Type, object, string)

Represents a converter that converts a number value to Visibility value.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, string language)

Parameters

value

object

The source data being passed to the target.

targetType

Type

The Type of data expected by the target dependency property.

parameter

object

An optional parameter to be used in the converter logic.

language

string

The language of the conversion.

Returns

object

The value to be passed to the target dependency property.

ConvertBack(object, Type, object, string)

Converts Visibility to number - if is Visible returns 1, otherwise returns 0.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, string language)

Parameters

value

object

targetType

Type

parameter

object

language

string

Returns

object

The Visibility value.