AxisMarkerAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

Das AxisMarkerAnnotation stellt ein Achsenlabel bereit, das an seinen Y-Wert gebunden ist. Wird ein Marker auf der Y-Achse platziert, kann es Rückmeldungen zum neuesten Wert einer Serie oder zu wichtigen Punkten einer Serie geben.

Erbt von: AnchorPointAnnotation

Konstruktoren

AxisMarkerAnnotation
public AxisMarkerAnnotation()
axisMarkerAnnotation = AxisMarkerAnnotation()

Initialisiert eine neue Instanz der AxisMarkerAnnotation Klasse.

Eigenschaften

Axis
public IAxis Axis { get; }
value = axisMarkerAnnotation.Axis

Bekommt IAxis Intance, wo AxisMarkerAnnotation platziert ist

AxisInfo
public AxisInfo AxisInfo { get; private set; }
value = axisMarkerAnnotation.AxisInfo
axisMarkerAnnotation.AxisInfo = value

Bekommt AxisInfo für aktuelle MarkerValue Intern verwendet als DataContext für PointerTemplate und LabelTemplate

FormattedValue
public string FormattedValue { get; set; }
value = axisMarkerAnnotation.FormattedValue
axisMarkerAnnotation.FormattedValue = value

Bekommt oder setzt den formatierten Wert der Achsenmarkierung. Standardmäßig ist dies datengebunden an Y1

LabelTemplate
public DataTemplate LabelTemplate { get; set; }
value = axisMarkerAnnotation.LabelTemplate
axisMarkerAnnotation.LabelTemplate = value

Bekommt oder setzt die Etikettenvorlage von AxisMarkerAnnotation

MarkerPointWidth
public double MarkerPointWidth { get; set; }
value = axisMarkerAnnotation.MarkerPointWidth
axisMarkerAnnotation.MarkerPointWidth = value

Die Markerspitzenbreite wird ermittelt oder festgelegt, dies ist die Breite des Punktes des Markers in Pixeln. Standardwert ist 8. Ändern Sie diese Eigenschaft, wenn der Marker gequetscht aussieht!

PointerTemplate
public DataTemplate PointerTemplate { get; set; }
value = axisMarkerAnnotation.PointerTemplate
axisMarkerAnnotation.PointerTemplate = value

Bekommt oder setzt Zeigervorlage von AxisMarkerAnnotation

Methoden

GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = axisMarkerAnnotation.GetSelectedCursor()

Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt

IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = axisMarkerAnnotation.IsPointWithinBounds(point)

Gibt true zurück, wenn der Punkt innerhalb der Grenzen des aktuellen IHitTestable-Elements liegt

point
Der Punkt zum Testen

Rückgabe: Wahr, wenn der Punkt innerhalb der Grenzen liegt

OnApplyTemplate
public override void OnApplyTemplate()
axisMarkerAnnotation.OnApplyTemplate()

Wenn in einer abgeleiteten Klasse überschrieben, wird aufgerufen, wenn Anwendungscode oder interne Prozesse ApplyTemplate aufrufen.

OnAxisAlignmentChanged
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
axisMarkerAnnotation.OnAxisAlignmentChanged(axis, oldAlignment)

Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich der AxisAlignment geändert hat

axis
oldAlignment
ToCoordinate
protected override double ToCoordinate(IComparable dataValue, double canvasMeasurement, ICoordinateCalculator<double> coordCalc, XyDirection direction)
result = axisMarkerAnnotation.ToCoordinate(dataValue, canvasMeasurement, coordCalc, direction)

Konvertiert einen Data-Value in Pixel Coordinate

dataValue
Der Data-Value zum Konvertieren
canvasMeasurement
Die Größe der Leinwand in X- oder Y-Richtung
coordCalc
Die aktuelle ICoordinateCalculator
direction
Die X- oder Y-Richtung für die Transformation
Update
public override void Update(ICoordinateCalculator<double> xCoordinateCalculator, ICoordinateCalculator<double> yCoordinateCalculator)
axisMarkerAnnotation.Update(xCoordinateCalculator, yCoordinateCalculator)

Aktualisiert die Koordinatenrechner und aktualisiert die Annotationsposition auf dem Eltern UltrachartSurface

xCoordinateCalculator
Die XAxis ICoordinateCalculator
yCoordinateCalculator
Die YAxis ICoordinateCalculator

Felder

AxisInfoProperty
protected internal static readonly DependencyProperty AxisInfoProperty
value = AxisMarkerAnnotation.AxisInfoProperty

Definiert die AxisInfoDependencyProperty

FormattedValueProperty
public static readonly DependencyProperty FormattedValueProperty
value = AxisMarkerAnnotation.FormattedValueProperty

Definiert die FormattedValueDependencyProperty

LabelTemplateProperty
public static readonly DependencyProperty LabelTemplateProperty
value = AxisMarkerAnnotation.LabelTemplateProperty

Definiert die LabelTemplateDependencyProperty

MarkerPointWidthProperty
public static readonly DependencyProperty MarkerPointWidthProperty
value = AxisMarkerAnnotation.MarkerPointWidthProperty

Definiert die MarkerPointWidthDependencyProperty

PointerTemplateProperty
public static readonly DependencyProperty PointerTemplateProperty
value = AxisMarkerAnnotation.PointerTemplateProperty

Definiert die PointerTemplateDependencyProperty