ClassNullToBooleanConverter
Class
Represents converter that returns boolean whether the value is null or not.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
cs-api-definition
public class NullToBooleanConverter : IValueConverter
Inheritance: objectNullToBooleanConverter
Implements:
Constructors
NullToBooleanConverter()
Declaration
cs-api-definition
public NullToBooleanConverter()
Fields
Instance
Instance of NullToBooleanConverter.
Declaration
cs-api-definition
public static readonly NullToBooleanConverter Instance
Field Value
Methods
Convert(object, Type, object, string)
Converts reference value to boolean.
Declaration
cs-api-definition
public object Convert(object value, Type targetType, object parameter, string language)
Parameters
value
The value.
targetType
Type of the target.
parameter
The parameter.
language
The language of the conversion.
Returns
Returns true if the value is not null. Otherwise returns false.
ConvertBack(object, Type, object, string)
Converts a value.
Declaration
cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, string language)
Parameters
value
The value.
targetType
Type of the target.
parameter
The parameter.
language
The language of the conversion.
Returns
A converted value.
Remarks
This method is not implemented. Throws NotImplementedException.