Class
PresenterBase

Base class for all Control instances that represent charting engine logical models.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public abstract class PresenterBase : RadControlBase, IChartElementPresenter

Inheritance: objectRadControlBasePresenterBase

Derived Classes: ChartElementPresenterRadChartBase

Implements: IChartElementPresenter

Inherited Members RadControlBase.OnUnloaded(object, RoutedEventArgs)RadControlBase.OnLoaded(object, RoutedEventArgs)RadControlBase.IsLoadedRadControlBase.IsTemplateApplied

Constructors

PresenterBase()

Initializes a new instance of the PresenterBase class.

Declaration

cs-api-definition
protected PresenterBase()

Fields

InfinityPoint

Represents a Point structure, which Width and Height members are set to double.PositiveInfinity.

Declaration

cs-api-definition
public static readonly Point InfinityPoint

Field Value

Point

InfinitySize

Represents a Size structure, which Width and Height members are set to double.PositiveInfinity.

Declaration

cs-api-definition
public static readonly Size InfinitySize

Field Value

Size

Properties

RenderSurface

Gets the Canvas instance used as a visual parent for all the child UI elements.

Declaration

cs-api-definition
protected Canvas RenderSurface { get; }

Property Value

Canvas

Methods

CreateContentPresenter(object, DataTemplate)

Creates a ContentPresenter associated with the specified content and template.

Declaration

cs-api-definition
protected ContentPresenter CreateContentPresenter(object content, DataTemplate template)

Parameters

content

object

template

DataTemplate

Returns

ContentPresenter

InvalidatePalette()

Re-applies the owning chart's palette.

Declaration

cs-api-definition
public void InvalidatePalette()

Implements IChartElementPresenter.InvalidatePalette()

MeasureNodeOverride(ChartNode, object)

Core entry point for calculating the size of a node's content.

Declaration

cs-api-definition
protected virtual RadSize MeasureNodeOverride(ChartNode node, object content)

Parameters

node

ChartNode

content

object

Returns

RadSize

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides RadControlBase.OnApplyTemplate()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

RefreshNode(ChartNode)

Invalidates the visual representation of the specified logical node.

Declaration

cs-api-definition
public void RefreshNode(ChartNode node)

Parameters

node

ChartNode

Implements IChartElementPresenter.RefreshNode(ChartNode)

RefreshNodeCore(ChartNode)

Performs the core logic that invalidates the visual representation of the specified logical node.

Declaration

cs-api-definition
protected virtual void RefreshNodeCore(ChartNode node)

Parameters

node

ChartNode