Class
IsOfTypeConverter

An IValueConverter that checks whether a value is of a given type or a subclass of it and returns a pre-defined value in accordance.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class IsOfTypeConverter : IValueConverter

Inheritance: objectIsOfTypeConverter

Implements: IValueConverter

Constructors

IsOfTypeConverter()

Declaration

cs-api-definition
public IsOfTypeConverter()

Properties

FalseValue

Gets or sets the value that is returned by the Convert() method when the incoming value is not of the provided Type.

Declaration

cs-api-definition
public object FalseValue { get; set; }

Property Value

object

TrueValue

Gets or sets the value that is returned by the Convert() method when the incoming value is of the provided Type.

Declaration

cs-api-definition
public object TrueValue { get; set; }

Property Value

object

Type

Gets or sets the Type that is used to determine whether the incoming value is of this type or a subclass of it.

Declaration

cs-api-definition
public Type Type { get; set; }

Property Value

Type

Methods

Convert(object, Type, object, CultureInfo)

Converts the incoming value to one of two pre-defined values (TrueValue or FalseValue) depending on whether the incoming value's type is of a given type or a subclass of it.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object

ConvertBack(object, Type, object, CultureInfo)

This method is not implemented and will throw a NotImplementedException.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object