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:
public class ChartCrosshairBehavior : ChartBehavior
Inheritance: objectInheritanceContextPropagatorChartBehaviorChartCrosshairBehavior
Inherited Members
Constructors
Initializes a new instance of the ChartCrosshairBehavior class.
public ChartCrosshairBehavior()
Fields
HorizontalLineLabelDefinitionProperty
DependencyProperty
Identifies the HorizontalLineLabelDefinition dependency property.
public static readonly DependencyProperty HorizontalLineLabelDefinitionProperty
HorizontalLineLabelVisibilityProperty
DependencyProperty
Identifies the HorizontalLineLabelVisibility dependency property.
public static readonly DependencyProperty HorizontalLineLabelVisibilityProperty
HorizontalLineStyleProperty
DependencyProperty
Identifies the HorizontalLineStyle dependency property.
public static readonly DependencyProperty HorizontalLineStyleProperty
HorizontalLineVisibilityProperty
DependencyProperty
Identifies the HorizontalLineVisibility dependency property.
public static readonly DependencyProperty HorizontalLineVisibilityProperty
VerticalLineLabelDefinitionProperty
DependencyProperty
Identifies the VerticalLineLabelDefinition dependency property.
public static readonly DependencyProperty VerticalLineLabelDefinitionProperty
VerticalLineLabelVisibilityProperty
DependencyProperty
Identifies the VerticalLineLabelVisibility dependency property.
public static readonly DependencyProperty VerticalLineLabelVisibilityProperty
VerticalLineStyleProperty
DependencyProperty
Identifies the VerticalLineStyle dependency property.
public static readonly DependencyProperty VerticalLineStyleProperty
VerticalLineVisibilityProperty
DependencyProperty
Identifies the VerticalLineVisibility dependency property.
public static readonly DependencyProperty VerticalLineVisibilityProperty
Properties
Gets or sets the definition for the label of the horizontal line.
public ChartAnnotationLabelDefinition HorizontalLineLabelDefinition { get; set; }
HorizontalLineLabelVisibility
Visibility
Gets or sets the visibility of the label of the horizontal line.
public Visibility HorizontalLineLabelVisibility { get; set; }
HorizontalLineStyle
Style
Gets or sets the style that is applied to the horizontal line.
public Style HorizontalLineStyle { get; set; }
HorizontalLineVisibility
Visibility
Gets or sets the visibility of the horizontal line.
public Visibility HorizontalLineVisibility { get; set; }
Gets or sets the definition for the label of the vertical line.
public ChartAnnotationLabelDefinition VerticalLineLabelDefinition { get; set; }
VerticalLineLabelVisibility
Visibility
Gets or sets the visibility of the label of the vertical line.
public Visibility VerticalLineLabelVisibility { get; set; }
VerticalLineStyle
Style
Gets or sets the style that is applied to the vertical line.
public Style VerticalLineStyle { get; set; }
VerticalLineVisibility
Visibility
Gets or sets the visibility of the vertical line.
public Visibility VerticalLineVisibility { get; set; }
Methods
CreateInstanceCore()
Freezable
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Freezable
The new instance.
Overrides:
Called when the behavior is added to the chart control.
protected override void OnAttached()
Overrides:
Called when chart template is changed.
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
The old adorner layer.
adornerContainerCanvasThe adorner layer.
Overrides:
Called when the behavior is removed from the chart control.
protected override void OnDetached()
Overrides:
Events
Occurs when the position of the lines that represent the crosshair change.
public event EventHandler<ChartCrosshairPositionChangedEventArgs> PositionChanged