ClassIsOfTypeConverter
Class
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:
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.
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
targetType
parameter
culture
Returns
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
targetType
parameter
culture
Returns