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