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
EmptyStringToObjectConverter
Implements
System.Windows.Data.IValueConverter
Inherited Members
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
Implements
System.Windows.Data.IValueConverter