Class InvertedBoolConverter
This class converts boolean value to inverted boolean and vice versa.
Inheritance
System.Object
InvertedBoolConverter
Implements
Microsoft.Maui.Controls.IValueConverter
Namespace: Syncfusion.Maui.Core.Converters
Assembly: Syncfusion.Maui.Core.dll
Syntax
public class InvertedBoolConverter : Object, IValueConverter
Constructors
InvertedBoolConverter()
Declaration
public InvertedBoolConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts boolean value to an inverted boolean type.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value must be the type of boolean |
System.Type | targetType | The type of the target property |
System.Object | parameter | An additional parameter for the converter to handle, not used |
System.Globalization.CultureInfo | culture | The culture to use in the converter, not used |
Returns
Type | Description |
---|---|
System.Object | Returns the inverted boolean value of the boolean |
ConvertBack(Object, Type, Object, CultureInfo)
Converts back the boolean to inverted boolean value
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value be the type of boolean |
System.Type | targetType | The type of the target property |
System.Object | parameter | An additional parameter for the converter to handle, not used |
System.Globalization.CultureInfo | culture | The culture to use in the converter, not used |
Returns
Type | Description |
---|---|
System.Object | Returns the boolean value of the inverted boolean |
Implements
Microsoft.Maui.Controls.IValueConverter