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

A crosshair presented by two lines and labels that are positioned in accordance to the pointer position.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public class ChartCrosshairBehavior : ChartBehavior

Inheritance: objectInheritanceContextPropagatorChartBehaviorChartCrosshairBehavior

Inherited Members ChartBehavior.OnUnloaded()ChartBehavior.ChartChartBehavior.AdornerContainerInheritanceContextPropagator.FreezeCore(bool)

Constructors

Initializes a new instance of the ChartCrosshairBehavior class.

C#
public ChartCrosshairBehavior()

Fields

Identifies the HorizontalLineLabelDefinition dependency property.

C#
public static readonly DependencyProperty HorizontalLineLabelDefinitionProperty

Identifies the HorizontalLineLabelVisibility dependency property.

C#
public static readonly DependencyProperty HorizontalLineLabelVisibilityProperty

HorizontalLineStyleProperty

DependencyProperty

Identifies the HorizontalLineStyle dependency property.

C#
public static readonly DependencyProperty HorizontalLineStyleProperty

Identifies the HorizontalLineVisibility dependency property.

C#
public static readonly DependencyProperty HorizontalLineVisibilityProperty

Identifies the VerticalLineLabelDefinition dependency property.

C#
public static readonly DependencyProperty VerticalLineLabelDefinitionProperty

Identifies the VerticalLineLabelVisibility dependency property.

C#
public static readonly DependencyProperty VerticalLineLabelVisibilityProperty

VerticalLineStyleProperty

DependencyProperty

Identifies the VerticalLineStyle dependency property.

C#
public static readonly DependencyProperty VerticalLineStyleProperty

Identifies the VerticalLineVisibility dependency property.

C#
public static readonly DependencyProperty VerticalLineVisibilityProperty

Properties

Gets or sets the definition for the label of the horizontal line.

C#
public ChartAnnotationLabelDefinition HorizontalLineLabelDefinition { get; set; }

Gets or sets the visibility of the label of the horizontal line.

C#
public Visibility HorizontalLineLabelVisibility { get; set; }

Gets or sets the style that is applied to the horizontal line.

C#
public Style HorizontalLineStyle { get; set; }

Gets or sets the visibility of the horizontal line.

C#
public Visibility HorizontalLineVisibility { get; set; }

Gets or sets the definition for the label of the vertical line.

C#
public ChartAnnotationLabelDefinition VerticalLineLabelDefinition { get; set; }

Gets or sets the visibility of the label of the vertical line.

C#
public Visibility VerticalLineLabelVisibility { get; set; }

Gets or sets the style that is applied to the vertical line.

C#
public Style VerticalLineStyle { get; set; }

Gets or sets the visibility of the vertical line.

C#
public Visibility VerticalLineVisibility { get; set; }

Methods

When implemented in a derived class, creates a new instance of the Freezable derived class.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Overrides: InheritanceContextPropagator.CreateInstanceCore()

Called when the behavior is added to the chart control.

C#
protected override void OnAttached()

Overrides: ChartBehavior.OnAttached()

Called when chart template is changed.

C#
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
Parameters:oldAdornerContainerCanvas

The old adorner layer.

adornerContainerCanvas

The adorner layer.

Overrides: ChartBehavior.OnChartTemplateChanged(Canvas, Canvas)

Called when the behavior is removed from the chart control.

C#
protected override void OnDetached()

Overrides: ChartBehavior.OnDetached()

Events

Occurs when the position of the lines that represent the crosshair change.

C#
public event EventHandler<ChartCrosshairPositionChangedEventArgs> PositionChanged