[]
        
(Showing Draft Content)

C1.WPF.Chart.Interaction.C1LineMarker

C1LineMarker Class

Represents an extension of the LineMarker for the FlexChart.

Inheritance
C1LineMarker
Namespace: C1.WPF.Chart.Interaction
Assembly: C1.WPF.Chart.dll
Syntax
[TemplatePart(Name = "Root", Type = typeof(Canvas))]
[TemplatePart(Name = "VerticalLine", Type = typeof(Line))]
[TemplatePart(Name = "HorizontalLine", Type = typeof(Line))]
[TemplatePart(Name = "Content", Type = typeof(Border))]
public class C1LineMarker : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IChartLayer

Constructors

Name Description
C1LineMarker()

Creates an instance of LineMarker.

Fields

Name Description
AlignmentProperty

Identifies the Alignment dependency property.

ContentProperty

Identifies the Content dependency property.

DragContentProperty

Identifies the DragContent dependency property.

DragLinesProperty

Identifies the DragLines dependency property.

DragThresholdProperty

Identifies the DragThreshold dependency property.

HorizontalPositionProperty

Identifies the HorizontalPosition dependency property.

InteractionProperty

Identifies the Interaction dependency property.

LineBrushProperty

Identifies the LineBrush dependency property.

LineWidthProperty

Identifies the LineWidth dependency property.

LinesProperty

Identifies the Lines dependency property.

VerticalPositionProperty

Identifies the VerticalPosition dependency property.

Properties

Name Description
Alignment

Gets or sets the alignment of the LineMarker content.

Content

Gets or sets the content function that allows you to customize the text content of the LineMarker.

DragContent

Gets or sets a value indicating whether the content of the marker is draggable when the interaction mode is "Drag".

DragLines

Gets or sets a value indicating whether the lines are linked when the horizontal or vertical line is dragged when the interaction mode is "Drag".

DragThreshold

Gets or sets the maximum distance from the horizontal or vertical line that the marker can be dragged.

HorizontalPosition

Gets or sets the position of horizontal line.

Interaction

Gets or sets the interaction mode of the LineMarker.

LineBrush

Gets or sets the line brush.

LineWidth

Gets or sets the line width.

Lines

Gets or sets the visibility of the LineMarker lines.

VerticalPosition

Gets or set the position of vertical line.

X

Gets the current x-value as chart data coordinates.

Y

Gets the current y-value as chart data coordinates.

Methods

Name Description
OnApplyTemplate()

Builds the visual tree for the C1LineMarker control when a new template is applied.

OnPositionChanged(bool)

Raise the PositionChanged event.

Events

Name Description
PositionChanged

Occurs after the LineMarker's position changes.