[]
Represents a Binding converter that returns a Boolean value indicating whether a source value is null or a string containing zero or more space characters only, or a not empty string.
[ValueConversion(typeof(string), typeof(bool))]
public class IsNotEmptyOrSpaceStringConverter : IValueConverter
IsNotEmptyOrSpaceStringConverter is a one-way converter. A target value returned by the converter is false if a source value is null or a zero length string or a string containing space characters only; otherwise, a target value is true.
Name | Description |
---|---|
IsNotEmptyOrSpaceStringConverter() |
Name | Description |
---|---|
Default | Gets an instance of IsNotEmptyOrSpaceStringConverter. |
Name | Description |
---|---|
Convert(object, Type, object, CultureInfo) | Converts a value. The data binding engine calls this method when it propagates a value from the binding source to the binding target. |
ConvertBack(object, Type, object, CultureInfo) | Returns Binding.DoNothing. |