Class
EnumToVisibilityConverter

Represents converter, which converts Enum types to and from a boolean value using the given parameter.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class EnumToVisibilityConverter : IValueConverter

Inheritance: objectEnumToVisibilityConverter

Implements: IValueConverter

Constructors

EnumToVisibilityConverter()

Declaration

cs-api-definition
public EnumToVisibilityConverter()

Methods

Convert(object, Type, object, string)

Converts a Enum value to a Boolean one if it is one from the specified in the parameter values.

Declaration

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

Parameters

value

object

targetType

Type

parameter

object

language

string

Returns

object

ConvertBack(object, Type, object, string)

Converts the Boolean value back to the first Enum value passed in the

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