Class NullToBooleanConverter
Converter to handle boolean values based on object values.
Inheritance
System.Object
NullToBooleanConverter
Implements
Windows.UI.Xaml.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class NullToBooleanConverter : Object, IValueConverter
Constructors
NullToBooleanConverter()
Declaration
public NullToBooleanConverter()
Methods
Convert(Object, Type, Object, String)
To convert object type values into boolean values.
Declaration
public object Convert(object value, Type targetType, object parameter, string 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.String | language | Gets culture info value. |
Returns
Type | Description |
---|---|
System.Object | Returns false, when objects are null; Otherwise retunrs true. |
ConvertBack(Object, Type, Object, String)
To convert object type values into boolean values.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string 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.String | language | Gets culture info value. |
Returns
Type |
---|
System.Object |
Implements
Windows.UI.Xaml.Data.IValueConverter