Class
VisualToVisualBrushConverter

Represents converter, which converts Visual value to VisualBrush and sets the value as Visual of the brush.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class VisualToVisualBrushConverter : IValueConverter

Inheritance: objectVisualToVisualBrushConverter

Implements: IValueConverter

Constructors

VisualToVisualBrushConverter()

Declaration

cs-api-definition
public VisualToVisualBrushConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts the specified Visual to a VisualBrush and sets the value as Visual of the brush.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The value.

targetType

Type

Type of the target.

parameter

object

The parameter.

culture

CultureInfo

The culture.

Returns

object

ConvertBack(object, Type, object, CultureInfo)

Modifies the target data before passing it to the source object. This method is called only in bindings.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The target data being passed to the source.

targetType

Type

The Type of data expected by the source object.

parameter

object

An optional parameter to be used in the converter logic.

culture

CultureInfo

The culture of the conversion.

Returns

object

The value to be passed to the source object.