Class OpacityConverter
Converts a UI element's opacity based on its parent hierarchy and tag presence.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class OpacityConverter : IValueConverter
Constructors
OpacityConverter()
Declaration
public OpacityConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a value to an opacity level based on its parent element type and tag.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | The source data being passed to the converter, expected to be a System.Windows.FrameworkElement. |
| System.Type | targetType | The type of the binding target property. |
| System.Object | parameter | An optional parameter to be used in the converter logic. |
| System.Globalization.CultureInfo | culture | The culture to use in the converter. |
Returns
| Type | Description |
|---|---|
| System.Object | A System.Double representing the opacity:
|
ConvertBack(Object, Type, Object, CultureInfo)
Converts a value back from the target type to the source type. This method is not implemented and will throw a System.NotImplementedException.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | The value produced by the binding target. |
| System.Type | targetType | The type to convert to. |
| System.Object | parameter | An optional parameter to use in the converter logic. |
| System.Globalization.CultureInfo | culture | The culture to use in the converter. |
Returns
| Type | Description |
|---|---|
| System.Object | This method does not return a value; it always throws an exception. |
Exceptions
| Type | Condition |
|---|---|
| System.NotImplementedException | Thrown always, as this method is not implemented. |