Class NullToBooleanConverter
Converter to handle boolean values based on object values.
Inheritance
System.Object
NullToBooleanConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class NullToBooleanConverter : Object, IValueConverter
Constructors
NullToBooleanConverter()
Declaration
public NullToBooleanConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
To convert object type values into boolean values.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Gets object value to convert boolean. |
System.Type | targetType | Gets target type. |
System.Object | parameter | Gets object parameter. |
System.Globalization.CultureInfo | language | Gets culture info value. |
Returns
Type | Description |
---|---|
System.Object | Returns false, when objects are null; Otherwise retunrs true. |
ConvertBack(Object, Type, Object, CultureInfo)
To convert object type values into boolean values.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Boolean value to convert as object. |
System.Type | targetType | Gets target type values. |
System.Object | parameter | Object parameter value. |
System.Globalization.CultureInfo | language | Gets culture info value. |
Returns
Type |
---|
System.Object |
Implements
System.Windows.Data.IValueConverter