Converts a string value to a boolean indicating whether the string is empty or not.
Definition
Namespace:Telerik.Windows.Documents.Utils
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class IsStringEmptyToBoolConverter : IValueConverter
Inheritance: objectIsStringEmptyToBoolConverter
Implements:
Constructors
public IsStringEmptyToBoolConverter()
Methods
Converts the specified value to a boolean indicating whether the string is empty.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value to convert, which should be a string or null.
targetTypeTypeThe type of the target property.
parameterobjectAn optional parameter that can be used to influence the conversion.
cultureCultureInfoThe culture to use in the conversion process.
Returns:True if the string is null or empty; otherwise, false.
Converts a value from a string representation to a boolean value.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The object to convert back to a boolean. This should be a string.
targetTypeTypeThe type to convert the value to, typically a boolean type.
parameterobjectAn optional parameter that can modify the conversion logic.
cultureCultureInfoThe culture information that may be used in the conversion process.
Returns:A boolean value indicating whether the string representation is empty or not.