OpacityConverter
Class
Adds opacity to a specified Color or SolidColorBrush.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
C#
public class OpacityConverter : IValueConverter
Inheritance: objectOpacityConverter
Implements:
Constructors
C#
public OpacityConverter()
Methods
Converts the specified value.
C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value.
targetTypeTypeType of the target.
parameterobjectThe parameter.
cultureCultureInfoThe culture.
Returns:Modifies the target data before passing it to the source object. This method is called only in bindings.
C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The target data being passed to the source.
targetTypeTypeThe Type of data expected by the source object.
parameterobjectAn optional parameter to be used in the converter logic.
cultureCultureInfoThe culture of the conversion.
Returns:The value to be passed to the source object.