CustomAnnotation
StockSharp.Xaml.Charting.Visuals.Annotations
CustomAnnotation是ContentControl,可以在注解表面上覆盖。关于使用的例子,请参见“说明Are Easy”和“在试验下载中动态创建说明”
构造函数
CustomAnnotation
public CustomAnnotation()
customAnnotation = CustomAnnotation()
初始化了 & ##CustomAnnotation+# 类的新实例 。
方法
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = customAnnotation.IsPointWithinBounds(point)
如果点位于当前 IHitTestable 元素的边界内, 返回真值
- point
- 测试点
返回值: 如果点在界限内, 则为真
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 地产的新价值.