ChartModifierSurface
StockSharp.Xaml.Charting.Visuals
定义 ChartModifierSurface,它作为UltrachartSurface顶部的覆盖画板用于绘制说明,
继承自: ContentControl
实现: IChartModifierSurface, IHitTestable
构造函数
ChartModifierSurface
public ChartModifierSurface()
chartModifierSurface = ChartModifierSurface()
初始化了 & ##ChartModifierSurface+# 类的新实例 。
属性
Children
public ObservableCollection<UIElement> Children { get; }
value = chartModifierSurface.Children
将UIElement儿童收藏在画布上取出,
ClipToBounds
public bool ClipToBounds { get; set; }
value = chartModifierSurface.ClipToBounds
chartModifierSurface.ClipToBounds = value
获取或设定是否添加到 #% ModifierSurface++的 UIElements 是否剪接到边框
方法
GetBoundsRelativeTo
public Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = chartModifierSurface.GetBoundsRelativeTo(relativeTo)
获取当前 & ###IHitTestable### 元素相对于另一个 & ##IHitTestable#% 元素的界限
- relativeTo
- 相对之.
IsPointWithinBounds
public bool IsPointWithinBounds(Point point)
result = chartModifierSurface.IsPointWithinBounds(point)
如果点位于当前 IHitTestable 元素的边界内, 返回真值
- point
- 测试点, 相对于 RootGrid 翻译
返回值: 如果点在界限内, 则为真
TranslatePoint
public Point TranslatePoint(Point point, IHitTestable relativeTo)
result = chartModifierSurface.TranslatePoint(point, relativeTo)
翻译相对于其他 * * IHitTestable * * 元素的点
- point
- 相对于此 IHitTestable 的输入点
- relativeTo
- 另一台IHitTestable在转换点时使用
返回值: 变形点
字段
ClipToBoundsProperty
public static readonly DependencyProperty ClipToBoundsProperty
value = ChartModifierSurface.ClipToBoundsProperty
定义 ClipToBounds DependencyProperty 定义