Class BoolNegationConverter
Value converter that takes a bool value and returns the inverse.
Inheritance
System.Object
BoolNegationConverter
Implements
Microsoft.UI.Xaml.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Core
Assembly: Syncfusion.Core.WinUI.dll
Syntax
public class BoolNegationConverter : Object, IValueConverter
Constructors
BoolNegationConverter()
Declaration
public BoolNegationConverter()
Methods
Convert(Object, Type, Object, String)
Convert a boolean value to its negation.
Declaration
public object Convert(object value, Type targetType, object parameter, string language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Boolean value to negate. |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Optional parameter. Not used. |
System.String | language | The language of the conversion. Not used |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the target dependency property. |
ConvertBack(Object, Type, Object, String)
Convert back a boolean value to its negation.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Boolean value to negate. |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Optional parameter. Not used. |
System.String | language | The language of the conversion. Not used |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the target dependency property. |
Implements
Microsoft.UI.Xaml.Data.IValueConverter