Class IsOfTypeConverter
An Microsoft.Maui.Controls.IValueConverter that checks whether a value is of a given type or a subclass of it and returns a pre-defined value in accordance.
Inheritance
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public class IsOfTypeConverter : Object, IValueConverter
Constructors
IsOfTypeConverter()
Declaration
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
public object FalseValue { get; set; }
Property Value
System.Object
|
TrueValue
Gets or sets the value that is returned by the Convert() method when the incoming value is of the provided Type.
Declaration
public object TrueValue { get; set; }
Property Value
System.Object
|
Type
Gets or sets the System.Type that is used to determine whether the incoming value is of this type or a subclass of it.
Declaration
public Type Type { get; set; }
Property Value
System.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
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|
ConvertBack(Object, Type, Object, CultureInfo)
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|