New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class VisualToVisualBrushConverter : IValueConverter

Inheritance: objectVisualToVisualBrushConverter

Implements: IValueConverter

Constructors

C#
public VisualToVisualBrushConverter()

Methods

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

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value.

targetTypeType

Type of the target.

parameterobject

The parameter.

cultureCultureInfo

The culture.

Returns:

object

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)
Parameters:valueobject

The target data being passed to the source.

targetTypeType

The Type of data expected by the source object.

parameterobject

An optional parameter to be used in the converter logic.

cultureCultureInfo

The culture of the conversion.

Returns:

object

The value to be passed to the source object.