CustomAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

CustomAnnotationは、アノテーション面にオーバーレイできる ContentControlです。 使用例については、アノテーションが簡単で、試用ダウンロードで動的に例を作成してください。

継承元: AnchorPointAnnotation

コンストラクター

CustomAnnotation
public CustomAnnotation()
customAnnotation = CustomAnnotation()

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

メソッド

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

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

point
試験のポイント

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

OnContentChanged
protected override void OnContentChanged(object oldContent, object newContent)
customAnnotation.OnContentChanged(oldContent, newContent)

コンテンツプロパティが変更されたときに呼び出されます。

oldContent
コンテンツプロパティの古い値。
newContent
コンテンツプロパティの新しい値。
OnContentTemplateChanged
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
customAnnotation.OnContentTemplateChanged(oldContentTemplate, newContentTemplate)

ContentTemplate プロパティーの変更時に電話をかけます。

oldContentTemplate
ContentTemplate プロパティの古い値。
newContentTemplate
ContentTemplate プロパティの新機能