New to Telerik UI for WPFStart a free 30-day trial

Represents converter that returns boolean whether the value is null or not.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class NullToBooleanConverter : IValueConverter

Inheritance: objectNullToBooleanConverter

Implements: IValueConverter

Constructors

C#
public NullToBooleanConverter()

Fields

C#
public static readonly NullToBooleanConverter Instance

Methods

Converts reference value to boolean.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value produced by the binding source.

targetTypeType

The type of the binding target property. This parameter is not used.

parameterobject

The converter parameter to use. This parameter is not used.

cultureCultureInfo

The culture to use in the converter. This parameter is not used.

Returns:

object

Returns true if the value is not null. Otherwise returns false.

Converts a value.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value that is produced by the binding target.

targetTypeType

The type to convert to.

parameterobject

The converter parameter to use.

cultureCultureInfo

The culture to use in the converter.

Returns:

object

A converted value.

Remarks:

This method is not implemented. Throws NotImplementedException.