Class
ContainerVisualsFactory

This factory helps preparing the ContainerVisual that will be used for the rendering of the Chart control. It creates new ContainerVisual instances and position them on the Chart's Canvas.

Definition

Namespace:Telerik.UI.Xaml.Controls.Chart

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class ContainerVisualsFactory

Inheritance: objectContainerVisualsFactory

Constructors

ContainerVisualsFactory()

Declaration

cs-api-definition
public ContainerVisualsFactory()

Methods

CanDrawContainerVisual(PresenterBase)

Indicates whether the visual can be drawn using the Composition API.

Declaration

cs-api-definition
protected virtual bool CanDrawContainerVisual(PresenterBase visualElement)

Parameters

visualElement

PresenterBase

The visual element that needs to be drawn.

Returns

bool

Return true if the visual element does not have set Styles and Templates - returns false if it has.

CreateContainerVisual(Compositor, Type)

Creates a new ContainerVisual instance.

Declaration

cs-api-definition
protected virtual ContainerVisual CreateContainerVisual(Compositor compositor, Type elementType)

Parameters

compositor

Compositor

The Compositor that creates the visual objects.

elementType

Type

The Type of the element for which ContainerVisual is created.

Returns

ContainerVisual

A new instance of the class.

PrepareAxisLineVisual(PolarAxis, ContainerVisual, RadPoint, RadPoint)

Declaration

cs-api-definition
protected virtual ContainerVisual PrepareAxisLineVisual(PolarAxis axis, ContainerVisual lineContainer, RadPoint centerPoint, RadPoint arcPoint)

Parameters

axis

PolarAxis

lineContainer

ContainerVisual

centerPoint

RadPoint

arcPoint

RadPoint

Returns

ContainerVisual

PrepareBarIndicatorVisual(ContainerVisual, DataPoint)

Prepares the ContainerVisual used for the visualization of the BarIndicatorBase by setting its Size, Color and Offset.

Declaration

cs-api-definition
protected virtual ContainerVisual PrepareBarIndicatorVisual(ContainerVisual containerVisual, DataPoint dataPoint)

Parameters

containerVisual

ContainerVisual

The ContainerVisual that is used by the Compositor API.

dataPoint

DataPoint

The DataPoint used for the calculation of the Size and Offset of the ContainerVisual.

Returns

ContainerVisual

PrepareCartesianAxisLineVisual(CartesianAxis, ContainerVisual, RadRect, AxisType)

Prepares the ContainerVisual used for the visualization of the Axis's Lines by setting its Size, Color and Offset.

Declaration

cs-api-definition
protected virtual ContainerVisual PrepareCartesianAxisLineVisual(CartesianAxis axis, ContainerVisual lineContainer, RadRect layoutSlot, AxisType axisType = AxisType.First)

Parameters

axis

CartesianAxis

The CartesianAxis that will be visualized.

lineContainer

ContainerVisual

The ContainerVisual that is used by the Composition API.

layoutSlot

RadRect

A Rectangle in the Euclidean plane geometry used for the Size and Offset of the ContainerVisual.

axisType

AxisType

The AxisType of the Axis's line.

Returns

ContainerVisual

PrepareCartesianChartGridLineVisual(ContainerVisual, RadRect, Orientation, DoubleCollection)

Prepares the ContainerVisual used for the visualization of the lines of the CartesianChartGrid by setting its Size, Color and Offset.

Declaration

cs-api-definition
protected virtual ContainerVisual PrepareCartesianChartGridLineVisual(ContainerVisual containerVisual, RadRect layoutSlot, Orientation orientation, DoubleCollection dashArray)

Parameters

containerVisual

ContainerVisual

The ContainerVisual that is used by the Composition API.

layoutSlot

RadRect

A Rectangle in the Euclidean plane geometry used for the Size and Offset of the ContainerVisual.

orientation

Orientation

The orientation of the CharGrid's line.

dashArray

DoubleCollection

An array of doubles used for positioning of the dashes of the CharGrid's line.

Returns

ContainerVisual

PrepareLineRenderVisual(ContainerVisual, IEnumerable<Point>, Brush, double)

Prepares the ContainerVisual used for the visualization of the line indicators by setting its Size, Color and Offset.

Declaration

cs-api-definition
protected virtual ContainerVisual PrepareLineRenderVisual(ContainerVisual containerVisual, IEnumerable<Point> points, Brush stroke, double strokeThickness)

Parameters

containerVisual

ContainerVisual

The ContainerVisual that is used by the Compositor API.

points

IEnumerable<Point>

The Point used for the calculation of the Size and Offset of the ContainerVisual.

stroke

Brush

The stroke set to the ContainerVisual and used by its color brush.

strokeThickness

double

The thickness of the stroke.

Returns

ContainerVisual

PreparePointTemplateSeriesVisual(ContainerVisual, DataPoint)

Prepares the ContainerVisual used for the visualization of the PointTemplateSeries by setting its Size, Color and Offset.

Declaration

cs-api-definition
protected virtual ContainerVisual PreparePointTemplateSeriesVisual(ContainerVisual containerVisual, DataPoint dataPoint)

Parameters

containerVisual

ContainerVisual

The ContainerVisual that is used by the Compositor API.

dataPoint

DataPoint

The DataPoint used for the calculation of the Size and Offset of the ContainerVisual.

Returns

ContainerVisual

PrepareTickVisual(ContainerVisual, RadRect)

Prepares the ContainerVisual used for the visualization of the ticks by setting its Size, Color and Offset.

Declaration

cs-api-definition
protected virtual ContainerVisual PrepareTickVisual(ContainerVisual containerVisual, RadRect layoutSlot)

Parameters

containerVisual

ContainerVisual

The ContainerVisual that is used by the Composition API.

layoutSlot

RadRect

A Rectangle in the Euclidean plane geometry used for the Size and Offset of the ContainerVisual.

Returns

ContainerVisual