Class InverseOpacityConverter
This class converts double value to opacity and vice versa.
Inheritance
System.Object
InverseOpacityConverter
Implements
Microsoft.Maui.Controls.IValueConverter
Namespace: Syncfusion.Maui.Core.Converters
Assembly: Syncfusion.Maui.Core.dll
Syntax
public class InverseOpacityConverter : Object, IValueConverter
Constructors
InverseOpacityConverter()
Declaration
public InverseOpacityConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts double value to an inverse opacity 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 numeric |
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 inverse opacity value of the double value |
ConvertBack(Object, Type, Object, CultureInfo)
Converts back the inverse opacity to double type
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 int |
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 double value of the inverse opacity |
Implements
Microsoft.Maui.Controls.IValueConverter