Converts null or empty values to boolean values.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
C#
public class NullOrEmptyToBoolConverter : IValueConverter
Inheritance: objectNullOrEmptyToBoolConverter
Implements:
Constructors
C#
public NullOrEmptyToBoolConverter()
Methods
Converts a value to a boolean indicating whether it is null or empty.
C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value to convert.
targetTypeTypeThe target type for the conversion.
parameterobjectAn optional parameter for the conversion.
cultureCultureInfoThe culture to use for the conversion.
Returns:true if the value is not null or empty; otherwise, false.
Converts back from a boolean to the original value type.
C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The value to convert back.
targetTypeTypeThe target type for the conversion.
parameterobjectAn optional parameter for the conversion.
cultureCultureInfoThe culture to use for the conversion.
Returns:This method is not implemented.
Exceptions:Always thrown as this method is not implemented.