ChartModifierSurface

StockSharp.Xaml.Charting.Visuals

Defines the ChartModifierSurface, which acts as an overlay Canvas on top of the UltrachartSurface for drawing annotations,

继承自: ContentControl

实现: IChartModifierSurface, IHitTestable

构造函数

ChartModifierSurface()

Initializes a new instance of the ChartModifierSurface class.

属性

Children : ObservableCollection<UIElement>

Gets the collection of UIElement children drawn on the canvas over the top of the UltrachartSurface

ClipToBounds : bool

Gets or sets whether UIElements added to the ModifierSurface should clip to bounds or not

方法

Clear()

Clears all children off the IChartModifierSurface

GetBoundsRelativeTo(IHitTestable) : Rect

Gets the bounds of the current IHitTestable element relative to another IHitTestable element

relativeTo
The relative to.
IsPointWithinBounds(Point) : bool

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

point
The point to test, translated relative to RootGrid

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

TranslatePoint(Point, IHitTestable) : Point

Translates the point relative to the other IHitTestable element

point
The input point relative to this IHitTestable
relativeTo
The other IHitTestable to use when transforming the point

返回值: The transformed Point

字段

ClipToBoundsProperty : DependencyProperty

Defines the ClipToBounds DependencyProperty