WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class EmptyStringToObjectConverter

    Show / Hide Table of Contents

    Class EmptyStringToObjectConverter

    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.

    Inheritance
    System.Object
    EmptyObjectToObjectConverter
    EmptyStringToObjectConverter
    StringVisibilityConverter
    Implements
    System.Windows.Data.IValueConverter
    Inherited Members
    EmptyObjectToObjectConverter.NotEmptyValueProperty
    EmptyObjectToObjectConverter.EmptyValueProperty
    EmptyObjectToObjectConverter.CanConvertToTargetTypeProperty
    EmptyObjectToObjectConverter.Convert(Object, Type, Object, CultureInfo)
    EmptyObjectToObjectConverter.ConvertBack(Object, Type, Object, CultureInfo)
    EmptyObjectToObjectConverter.NotEmptyValue
    EmptyObjectToObjectConverter.EmptyValue
    EmptyObjectToObjectConverter.CanConvertToTargetType
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public class EmptyStringToObjectConverter : EmptyObjectToObjectConverter, IValueConverter

    Constructors

    EmptyStringToObjectConverter()

    Declaration
    public EmptyStringToObjectConverter()

    Methods

    CheckValueIsEmpty(Object)

    Checks string for emptiness.

    Declaration
    protected override bool CheckValueIsEmpty(object value)
    Parameters
    Type Name Description
    System.Object value

    Value to be checked.

    Returns
    Type Description
    System.Boolean

    True if value is null or empty string, false otherwise.

    Overrides
    EmptyObjectToObjectConverter.CheckValueIsEmpty(Object)

    Implements

    System.Windows.Data.IValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved