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

Inherits: AnchorPointAnnotation

Constructors

CustomAnnotation
public CustomAnnotation()
customAnnotation = CustomAnnotation()

Initializes a new instance of the CustomAnnotation class.

Methods

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

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

point
The point to test

Returns: true if the Point is within the bounds

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

Called when the Content property changes.

oldContent
The old value of the Content property.
newContent
The new value of the Content property.
OnContentTemplateChanged
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
customAnnotation.OnContentTemplateChanged(oldContentTemplate, newContentTemplate)

Called when the ContentTemplate property changes.

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