menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class EmptyStringToObjectConverter - WPF API Reference | Syncfusion

    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.CanConvertToTargetType
    EmptyObjectToObjectConverter.CanConvertToTargetTypeProperty
    EmptyObjectToObjectConverter.Convert(Object, Type, Object, CultureInfo)
    EmptyObjectToObjectConverter.ConvertBack(Object, Type, Object, CultureInfo)
    EmptyObjectToObjectConverter.EmptyValue
    EmptyObjectToObjectConverter.EmptyValueProperty
    EmptyObjectToObjectConverter.NotEmptyValue
    EmptyObjectToObjectConverter.NotEmptyValueProperty
    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 - 2025 Syncfusion Inc. All Rights Reserved