ClassNullOrEmptyToBoolConverter
Converts null or empty values to boolean values.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class NullOrEmptyToBoolConverter : IValueConverter
Inheritance: objectNullOrEmptyToBoolConverter
Implements:
Constructors
NullOrEmptyToBoolConverter()
Declaration
public NullOrEmptyToBoolConverter()
Methods
Convert(object, Type, object, CultureInfo)
Converts a value to a boolean indicating whether it is null or empty.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The value to convert.
targetType
The target type for the conversion.
parameter
An optional parameter for the conversion.
culture
The culture to use for the conversion.
Returns
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
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The value to convert back.
targetType
The target type for the conversion.
parameter
An optional parameter for the conversion.
culture
The culture to use for the conversion.
Returns
This method is not implemented.
Exceptions
Always thrown as this method is not implemented.