AxisMarkerAnnotation
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
public AxisMarkerAnnotation()
axisMarkerAnnotation = AxisMarkerAnnotation()
Initialisiert eine neue Instanz der AxisMarkerAnnotation Klasse.
Eigenschaften
public IAxis Axis { get; }
value = axisMarkerAnnotation.Axis
Bekommt IAxis Intance, wo AxisMarkerAnnotation platziert ist
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
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
public DataTemplate LabelTemplate { get; set; }
value = axisMarkerAnnotation.LabelTemplate
axisMarkerAnnotation.LabelTemplate = value
Bekommt oder setzt die Etikettenvorlage von AxisMarkerAnnotation
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!
public DataTemplate PointerTemplate { get; set; }
value = axisMarkerAnnotation.PointerTemplate
axisMarkerAnnotation.PointerTemplate = value
Bekommt oder setzt Zeigervorlage von AxisMarkerAnnotation
Methoden
protected override Cursor GetSelectedCursor()
result = axisMarkerAnnotation.GetSelectedCursor()
Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt
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
public override void OnApplyTemplate()
axisMarkerAnnotation.OnApplyTemplate()
Wenn in einer abgeleiteten Klasse überschrieben, wird aufgerufen, wenn Anwendungscode oder interne Prozesse ApplyTemplate aufrufen.
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
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
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
protected internal static readonly DependencyProperty AxisInfoProperty
value = AxisMarkerAnnotation.AxisInfoProperty
Definiert die AxisInfoDependencyProperty
public static readonly DependencyProperty FormattedValueProperty
value = AxisMarkerAnnotation.FormattedValueProperty
Definiert die FormattedValueDependencyProperty
public static readonly DependencyProperty LabelTemplateProperty
value = AxisMarkerAnnotation.LabelTemplateProperty
Definiert die LabelTemplateDependencyProperty
public static readonly DependencyProperty MarkerPointWidthProperty
value = AxisMarkerAnnotation.MarkerPointWidthProperty
Definiert die MarkerPointWidthDependencyProperty
public static readonly DependencyProperty PointerTemplateProperty
value = AxisMarkerAnnotation.PointerTemplateProperty
Definiert die PointerTemplateDependencyProperty