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

Represents converter that converts null or empty string object to Visibility values .

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class NullToVisibilityConverter : IValueConverter

Inheritance: objectNullToVisibilityConverter

Implements: IValueConverter

Constructors

C#
public NullToVisibilityConverter()

Methods

Converts object to Visibility.

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

The object that will be used for conversion.

targetTypeType

This parameter is not used.

parameterobject

This parameter is not used.

cultureCultureInfo

This parameter is not used.

Returns:

object

Visibility presentation of the object.

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.