Class
Axis

Represents an axis within a RadCartesianChart instance.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public abstract class Axis : ChartElementPresenter, IChartElementPresenter

Inheritance: objectRadControlBasePresenterBaseChartElementPresenterAxis

Derived Classes: LineAxisRadialAxis

Implements: IChartElementPresenter

Inherited Members ChartElementPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs)ChartElementPresenter.ZIndexChartElementPresenter.ChartPresenterBase.InfinitySizePresenterBase.InfinityPointPresenterBase.RefreshNode(ChartNode)PresenterBase.InvalidatePalette()PresenterBase.RefreshNodeCore(ChartNode)PresenterBase.CreateContentPresenter(object, DataTemplate)PresenterBase.RenderSurfaceRadControlBase.OnUnloaded(object, RoutedEventArgs)RadControlBase.OnLoaded(object, RoutedEventArgs)RadControlBase.IsLoadedRadControlBase.IsTemplateApplied

Constructors

Axis()

Initializes a new instance of the Axis class.

Declaration

cs-api-definition
protected Axis()

Fields

ElementBrushProperty

Identifies the ElementBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ElementBrushProperty

Field Value

DependencyProperty

LabelFitModeProperty

Identifies the LabelFitMode property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelFitModeProperty

Field Value

DependencyProperty

LabelFormatProperty

Identifies the LabelFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelFormatProperty

Field Value

DependencyProperty

LabelIntervalProperty

Identifies the LabelInterval property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelIntervalProperty

Field Value

DependencyProperty

LabelRotationAngleProperty

Identifies the LabelRotationAngle property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelRotationAngleProperty

Field Value

DependencyProperty

LabelStyleProperty

Identifies the LabelStyle property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelStyleProperty

Field Value

DependencyProperty

LabelTemplateProperty

Identifies the LabelTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelTemplateProperty

Field Value

DependencyProperty

LabelTemplateSelectorProperty

Identifies the LabelTemplateSelector property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelTemplateSelectorProperty

Field Value

DependencyProperty

LineDashArrayProperty

Identifies the LineDashArray property.

Declaration

cs-api-definition
public static readonly DependencyProperty LineDashArrayProperty

Field Value

DependencyProperty

LineStrokeProperty

Identifies the LineStroke property.

Declaration

cs-api-definition
public static readonly DependencyProperty LineStrokeProperty

Field Value

DependencyProperty

MajorTickStyleProperty

Identifies the MajorTickStyle property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickStyleProperty

Field Value

DependencyProperty

MajorTickTemplateProperty

Identifies the MajorTickTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty MajorTickTemplateProperty

Field Value

DependencyProperty

ShowLabelsProperty

Identifies the ShowLabels property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowLabelsProperty

Field Value

DependencyProperty

TitleProperty

Identifies the Title dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TitleProperty

Field Value

DependencyProperty

TitleTemplateProperty

Identifies the TitleTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty TitleTemplateProperty

Field Value

DependencyProperty

Properties

ElementBrush

Gets or sets the brush that is applied to the axis line and ticks.

Declaration

cs-api-definition
public Brush ElementBrush { get; set; }

Property Value

Brush

The element brush.

LabelFitMode

Gets or sets a value that determines how the axis labels will be laid out when they are overlapping each other.

Declaration

cs-api-definition
public AxisLabelFitMode LabelFitMode { get; set; }

Property Value

AxisLabelFitMode

LabelFormat

Gets or sets the format used to format all the labels present on the axis.

Declaration

cs-api-definition
public string LabelFormat { get; set; }

Property Value

string

LabelInterval

Gets or sets the step at which labels are positioned.

Declaration

cs-api-definition
public int LabelInterval { get; set; }

Property Value

int

LabelOffset

Gets or sets index-based offset of the first tick to be displayed.

Declaration

cs-api-definition
public int LabelOffset { get; set; }

Property Value

int

LabelRotationAngle

Gets or sets the rotation angle of the labels when LabelFitMode equals Rotate.

Declaration

cs-api-definition
public double LabelRotationAngle { get; set; }

Property Value

double

LabelStyle

Gets or sets the Style to be applied to the default TextBlock instance created when LabelTemplate property is not specified. Creating a TextBlock instance per label instead of a ContentPresenter gives a huge performance boost.

Declaration

cs-api-definition
public Style LabelStyle { get; set; }

Property Value

Style

LabelTemplate

Gets or sets the DataTemplate used to visualize axis labels.

Declaration

cs-api-definition
public DataTemplate LabelTemplate { get; set; }

Property Value

DataTemplate

LabelTemplateSelector

Gets or sets the DataTemplateSelector used to provide conditional DataTemplate look-up when axis labels are visualized.

Declaration

cs-api-definition
public DataTemplateSelector LabelTemplateSelector { get; set; }

Property Value

DataTemplateSelector

LastLabelVisibility

Gets or sets the strategy that defines the last axis label visibility.

Declaration

cs-api-definition
public AxisLastLabelVisibility LastLabelVisibility { get; set; }

Property Value

AxisLastLabelVisibility

LineDashArray

Gets or sets the pattern used when drawing axis line.

Declaration

cs-api-definition
public DoubleCollection LineDashArray { get; set; }

Property Value

DoubleCollection

LineStroke

Gets or sets the Brush object that defines the stroke of the Shape shape used to display axis' line.

Declaration

cs-api-definition
public Brush LineStroke { get; set; }

Property Value

Brush

LineThickness

Gets or sets the thickness of the Shape used to display the stroke of the axis.

Declaration

cs-api-definition
public double LineThickness { get; set; }

Property Value

double

MajorTickLength

Gets or sets the length of the major tick.

Declaration

cs-api-definition
public double MajorTickLength { get; set; }

Property Value

double

MajorTickOffset

Gets or sets index-based offset of the first tick to be displayed.

Declaration

cs-api-definition
public int MajorTickOffset { get; set; }

Property Value

int

MajorTickStyle

Gets or sets the style for each Rectangle instance created to represent a major tick when no MajorTickTemplate is specified. Creating a Rectangle instance per tick instead of a ContentPresenter gives a huge performance boost.

Declaration

cs-api-definition
public Style MajorTickStyle { get; set; }

Property Value

Style

MajorTickTemplate

Gets or sets the DataTemplate instance used to visualize major ticks on the axis. If this value is not specified ticks will be presented by a Rectangle shape.

Declaration

cs-api-definition
public DataTemplate MajorTickTemplate { get; set; }

Property Value

DataTemplate

ShowLabels

Gets or sets a value indicating whether labels will be displayed on this axis.

Declaration

cs-api-definition
public bool ShowLabels { get; set; }

Property Value

bool

SmartLabelsMode

Gets or sets the smart labels mode that will be used to avoid overlapping labels.

Declaration

cs-api-definition
public AxisSmartLabelsMode SmartLabelsMode { get; set; }

Property Value

AxisSmartLabelsMode

TickThickness

Gets or sets the thickness of a single tick present on the axis. Useful when custom tick templates are specified.

Declaration

cs-api-definition
public double TickThickness { get; set; }

Property Value

double

Title

Gets or sets the title of the associated logical axis model.

Declaration

cs-api-definition
public object Title { get; set; }

Property Value

object

TitleTemplate

Gets or sets the DataTemplate instance used to visualize the axis's title.

Declaration

cs-api-definition
public DataTemplate TitleTemplate { get; set; }

Property Value

DataTemplate

Methods

GetTickTemplate(TickType)

Gets the DataTemplate instance used to visualize the a tick with the specified TickType.

Declaration

cs-api-definition
protected virtual DataTemplate GetTickTemplate(TickType tickType)

Parameters

tickType

TickType

Returns

DataTemplate

MeasureNodeOverride(ChartNode, object)

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

Declaration

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

Parameters

node

ChartNode

content

object

Returns

RadSize

Overrides PresenterBase.MeasureNodeOverride(ChartNode, object)

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 PresenterBase.OnApplyTemplate()

OnAttached()

Occurs when the presenter has been successfully attached to its owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnAttached()

Overrides ChartElementPresenter.OnAttached()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

OnDetached(RadChartBase)

Occurs when the presenter has been successfully detached from its owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnDetached(RadChartBase oldChart)

Parameters

oldChart

RadChartBase

Overrides ChartElementPresenter.OnDetached(RadChartBase)

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.

Overrides PresenterBase.OnInitialized(EventArgs)