EmptyObjectToObjectConverter Class

Definition

This class converts an object value into a an object (if the value is null returns the false value). Can be used to bind a visibility, a color or an image to the value of an object.

C#
public class EmptyObjectToObjectConverter : Windows.UI.Xaml.DependencyObject, Windows.UI.Xaml.Data.IValueConverter
Inheritance
Windows.UI.Xaml.DependencyObject
EmptyObjectToObjectConverter
Derived
Implements
Windows.UI.Xaml.Data.IValueConverter

Constructors

Fields

EmptyValueProperty

Identifies the EmptyValue property.

NotEmptyValueProperty

Identifies the NotEmptyValue property.

Properties

EmptyValue

Gets or sets the value to be returned when the object is either null or empty

NotEmptyValue

Gets or sets the value to be returned when the object is neither null nor empty

Methods

CheckValueIsEmpty(Object)

Checks value for emptiness.

Convert(Object, Type, Object, String)

Convert a boolean value to an other object.

ConvertBack(Object, Type, Object, String)

Not implemented

Applies to

Produit Versions
Windows Community Toolkit 6.1.1, 7.0.0, 7.1.0