CustomAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

CustomAnnotation is a ContentControl which can be overlaid on the annotation surfaces. For examples of use, see the Annotations Are Easy and Create Annotations Dynamically examples in the trial download

继承自: AnchorPointAnnotation

构造函数

CustomAnnotation()

Initializes a new instance of the CustomAnnotation class.

方法

IsPointWithinBounds(Point) : bool

Returns true if the Point is within the bounds of the current IHitTestable element

point
The point to test

返回值: true if the Point is within the bounds

OnContentChanged(object, object)

Called when the Content property changes.

oldContent
The old value of the Content property.
newContent
The new value of the Content property.
OnContentTemplateChanged(DataTemplate, DataTemplate)

Called when the ContentTemplate property changes.

oldContentTemplate
The old value of the ContentTemplate property.
newContentTemplate
The new value of the ContentTemplate property.