Class StringIsNullOrEmptyToBooleanConverter
Converts a string to a boolean depending whether the string is null or empty
Inheritance
System.Object
    System.Windows.Markup.MarkupExtension
    
    NullConverter<System.Boolean>
    
    StringIsNullOrEmptyToBooleanConverter
  Implements
System.Windows.Data.IValueConverter
  
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
    Namespace: Sartorius.SAF.Presentation.Converter
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class StringIsNullOrEmptyToBooleanConverter : NullOrEmptyConverter<string, bool>, IValueConverter
  Constructors
View SourceStringIsNullOrEmptyToBooleanConverter()
Initializes a new instance of the StringIsNullOrEmptyToBooleanConverter class.
Declaration
public StringIsNullOrEmptyToBooleanConverter()
  Properties
View SourceIsEmptyPredicate
A predicate determining if an object of System.String is empty (or whitespace if WhiteSpaceIsNull is true).
Declaration
protected override Func<string, bool> IsEmptyPredicate { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Func<System.String, System.Boolean> | 
Overrides
Sartorius.SAF.Presentation.Converter.NullOrEmptyConverter<System.String, System.Boolean>.IsEmptyPredicate
  
  
    View Source
  
  
  WhiteSpaceIsNull
Gets a value indicating whether the converter should treat whitespace only strings as empty.
Declaration
public bool WhiteSpaceIsNull { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Implements
      System.Windows.Data.IValueConverter