StringVisibilityConverter Class

Definition

This class converts a string value into a Visibility value (if the value is null or empty returns a collapsed value).

public class StringVisibilityConverter : Microsoft.Toolkit.Uwp.UI.Converters.EmptyStringToObjectConverter
type StringVisibilityConverter = class
    inherit EmptyStringToObjectConverter
Public Class StringVisibilityConverter
Inherits EmptyStringToObjectConverter
Inheritance
Windows.UI.Xaml.DependencyObject
StringVisibilityConverter

Constructors

StringVisibilityConverter()

Initializes a new instance of the StringVisibilityConverter class.

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.

(Inherited from EmptyStringToObjectConverter)
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