Class ObjectToBoolConverter
This class converts an object value into an bool value. Can be used to convert any object values like visibility, a couple of colors, couple of images, etc to bool value.
Implements
System.Windows.Data.IValueConverter
Inherited Members
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
public class ObjectToBoolConverter : BoolToObjectConverter, IValueConverter
Constructors
ObjectToBoolConverter()
Declaration
public ObjectToBoolConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
This method is used to convert the object value into Boolean value.
Declaration
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
System.Type | targetType | |
System.Object | parameter | |
System.Globalization.CultureInfo | culture |
Returns
Type |
---|
System.Object |
Overrides
ConvertBack(Object, Type, Object, CultureInfo)
This method is used to convert a Boolean value into object value.
Declaration
public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
System.Type | targetType | |
System.Object | parameter | |
System.Globalization.CultureInfo | culture |
Returns
Type |
---|
System.Object |
Overrides
Implements
System.Windows.Data.IValueConverter