Class
NullOrEmptyToBoolConverter

Converts null or empty values to boolean values.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class NullOrEmptyToBoolConverter : IValueConverter

Inheritance: objectNullOrEmptyToBoolConverter

Implements: IValueConverter

Constructors

NullOrEmptyToBoolConverter()

Declaration

cs-api-definition
public NullOrEmptyToBoolConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a value to a boolean indicating whether it is null or empty.

Declaration

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

Parameters

value

object

The value to convert.

targetType

Type

The target type for the conversion.

parameter

object

An optional parameter for the conversion.

culture

CultureInfo

The culture to use for the conversion.

Returns

object

true if the value is not null or empty; otherwise, false.

ConvertBack(object, Type, object, CultureInfo)

Converts back from a boolean to the original value type.

Declaration

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

Parameters

value

object

The value to convert back.

targetType

Type

The target type for the conversion.

parameter

object

An optional parameter for the conversion.

culture

CultureInfo

The culture to use for the conversion.

Returns

object

This method is not implemented.

Exceptions

NotImplementedException

Always thrown as this method is not implemented.