WPF

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

    Show / Hide Table of Contents

    Class EmptyCollectionToObjectConverter

    This class converts a collection size into an other object. Can be used to convert to bind a visibility, a color or an image to the size of the collection.

    Inheritance
    System.Object
    EmptyObjectToObjectConverter
    EmptyCollectionToObjectConverter
    CollectionVisibilityConverter
    CountToVisibilityConverter
    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 EmptyCollectionToObjectConverter : EmptyObjectToObjectConverter, IValueConverter

    Constructors

    EmptyCollectionToObjectConverter()

    Declaration
    public EmptyCollectionToObjectConverter()

    Methods

    CheckValueIsEmpty(Object)

    Checks collection 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 an empty collection or does not implement IEnumerable, 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