AxisMarkerAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

AxisMarkerAnnotationは Y-value にデータ・バウンドである軸ラベルを提供します。Y-Axis にマーカーを配置するために使用されて、シリーズの最新の値、または重要なポイントについて、シリーズのフィードバックを得ることができます。

継承元: AnchorPointAnnotation

コンストラクター

AxisMarkerAnnotation
public AxisMarkerAnnotation()
axisMarkerAnnotation = AxisMarkerAnnotation()

AxisMarkerAnnotationクラスの新しいインスタンスを初期化します。

プロパティ

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

AxisMarkerAnnotation が配置されているIAxisインスタンスを取得する

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

PointerTemplateとLabelTemplateのDataContextとして内部で使用したMarkerValueのAxisInfoを、MarkerValueとLabelTemplateに取得

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

アクシスマーカーのフォーマットされた値を取得またはセットします。デフォルトでは、Y1 へのデータ・バウンドです。

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

AxisMarkerAnnotation@のラベルテンプレートを入手またはセットする

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

マーカーの先端幅をゲットまたはセットすると、ピクセルのマーカーの点の幅です。 デフォルト値は8です。 マーカーがスカッシュに見える場合は、このプロパティを変更してください!

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

AxisMarkerAnnotation@のポインタテンプレートの獲得やセット

メソッド

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

選択した時に注釈に使用するCursorを取得します

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

ポイントが現在のIHitTestable要素の境界内にある場合は、trueを返します

point
試験のポイント

戻り値: ポイントが境界内にある場合 true

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

派生クラスに上書きする場合は、アプリケーションコードや内部プロセスがApplyTemplate@に電話する時に呼び出されます。

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

AxisAlignmentが変更されたことを通知したい場合、仮想メソッドをオーバーライド

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

データをピクセル座標に変換

dataValue
変換するデータ変数
canvasMeasurement
X または Y 方向のキャンバスのサイズ
coordCalc
代表取締役社長 佐藤 正
direction
変換のためのXまたはY方向
Update
public override void Update(ICoordinateCalculator<double> xCoordinateCalculator, ICoordinateCalculator<double> yCoordinateCalculator)
axisMarkerAnnotation.Update(xCoordinateCalculator, yCoordinateCalculator)

座標計算機を更新し、親 UltrachartSurface の注釈位置をリフレッシュ

xCoordinateCalculator
代表取締役社長 岡本 俊一
yCoordinateCalculator
ヤシックスICoordinateCalculator@

フィールド

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

電子メール:AxisInfoDependencyProperty@

FormattedValueProperty
public static readonly DependencyProperty FormattedValueProperty
value = AxisMarkerAnnotation.FormattedValueProperty

電子メール:FormattedValueDependencyProperty@

LabelTemplateProperty
public static readonly DependencyProperty LabelTemplateProperty
value = AxisMarkerAnnotation.LabelTemplateProperty

電子メール:LabelTemplateDependencyProperty@

MarkerPointWidthProperty
public static readonly DependencyProperty MarkerPointWidthProperty
value = AxisMarkerAnnotation.MarkerPointWidthProperty

電子メール:MarkerPointWidthDependencyProperty@

PointerTemplateProperty
public static readonly DependencyProperty PointerTemplateProperty
value = AxisMarkerAnnotation.PointerTemplateProperty

電子メール:PointerTemplateDependencyProperty@