EmptyStringToObjectConverter Class

Definition

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

public class EmptyStringToObjectConverter : CommunityToolkit.WinUI.UI.Converters.EmptyObjectToObjectConverter
type EmptyStringToObjectConverter = class
    inherit EmptyObjectToObjectConverter
Public Class EmptyStringToObjectConverter
Inherits EmptyObjectToObjectConverter
Inheritance
Microsoft.UI.Xaml.DependencyObject
EmptyStringToObjectConverter
Derived

Constructors

EmptyStringToObjectConverter()

Properties

EmptyValue

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

(Inherited from EmptyObjectToObjectConverter)
NotEmptyValue

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

(Inherited from EmptyObjectToObjectConverter)

Methods

CheckValueIsEmpty(Object)

Checks string for emptiness.

Convert(Object, Type, Object, String)

Convert a boolean value to an other object.

(Inherited from EmptyObjectToObjectConverter)
ConvertBack(Object, Type, Object, String)

Not implemented

(Inherited from EmptyObjectToObjectConverter)

Applies to