UltrachartSurface
提供高性能图表面,单个RenderSurfaceBase取景口,用于渲染多起IRenderableSeries,多起X和Y IAxis等实例,并配有IDataSeries绑定,Mulliple ChartModifierBase衍生行为修饰器和多起AnnotationBase UIELEN 说明
实现: IUltrachartSurface, IUltrachartSurfaceBase, ISuspendable, IInvalidatableElement, IUltrachartController, IDisposable, IXmlSerializable
构造函数
internal UltrachartSurface(IServiceContainer mockServices)
ultrachartSurface = UltrachartSurface(mockServices)
用于测试的内部 Ctor
- mockServices
public UltrachartSurface()
ultrachartSurface = UltrachartSurface()
初始化了 & ##UltrachartSurface+# 类的新实例 。
属性
public Canvas AdornerLayerCanvas { get; }
value = ultrachartSurface.AdornerLayerCanvas
使 Adorner 图层翻过图表
public ICommand AnimateZoomExtentsCommand { get; set; }
value = ultrachartSurface.AnimateZoomExtentsCommand
ultrachartSurface.AnimateZoomExtentsCommand = value
获取或设置动画放大等宽命令, 当引用时, 会导致 UltrachartSurface 使用动画放大等宽
public IAnnotationCanvas AnnotationOverlaySurface { get; }
value = ultrachartSurface.AnnotationOverlaySurface
将注释画画画取出图表
public AnnotationCollection Annotations { get; set; }
value = ultrachartSurface.Annotations
ultrachartSurface.Annotations = value
获取 AnnotationCollection, 提供 UltrachartSurface 上可翻译的说明
public IAnnotationCanvas AnnotationUnderlaySurface { get; }
value = ultrachartSurface.AnnotationUnderlaySurface
获取图表下的注释
public bool AutoRangeOnStartup { get; set; }
value = ultrachartSurface.AutoRangeOnStartup
ultrachartSurface.AutoRangeOnStartup = value
获取或设置一个数值, 显示 Ultrachart 是否在启动时尝试一次性执行 AutoRange 。
public AxisArea AxisAreaBottom { get; }
value = ultrachartSurface.AxisAreaBottom
获取 AxisArea 底部, 包含 AxisAlignment 设置到底部的轴
public AxisArea AxisAreaLeft { get; }
value = ultrachartSurface.AxisAreaLeft
获取左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起左起相相起左起左起左起左起左起左起左起相相相相起相相相相相相相相起相相相起相相相相相相相相相起相起相起相起相起相起相相相相相相相相相相相
public AxisArea AxisAreaRight { get; }
value = ultrachartSurface.AxisAreaRight
获取右 AxisArea, 包含 AxisAlignment 设置为右的轴
public AxisArea AxisAreaTop { get; }
value = ultrachartSurface.AxisAreaTop
获取 AxisArea 顶级, 包含 AxisAlignment 设置到顶级的轴
public ItemsPanelTemplate BottomAxesPanelTemplate { get; set; }
value = ultrachartSurface.BottomAxesPanelTemplate
ultrachartSurface.BottomAxesPanelTemplate = value
获取或设置用于定义控制下方相通轴布局的面板的模板
public AxisArea CenterXAxisArea { get; }
value = ultrachartSurface.CenterXAxisArea
获得包含有 IsCenterAxis 旗帜的 XAxs 的 AxisArea 中心, 其旗帜等于真
public AxisArea CenterYAxisArea { get; }
value = ultrachartSurface.CenterYAxisArea
获得包含有 IsCenterAxis 旗帜的 YAX 的 AxisArea 中心
public IChartModifier ChartModifier { get; set; }
value = ultrachartSurface.ChartModifier
ultrachartSurface.ChartModifier = value
获取或设置当前改变图表行为的 ChartModifier 。
public bool ClipOverlayAnnotations { get; set; }
value = ultrachartSurface.ClipOverlayAnnotations
ultrachartSurface.ClipOverlayAnnotations = value
获取或设定图表上的注释是否剪接到边框。默认值为 True
public bool ClipUnderlayAnnotations { get; set; }
value = ultrachartSurface.ClipUnderlayAnnotations
ultrachartSurface.ClipUnderlayAnnotations = value
获取或设定图表下的注释是否剪接到边框。默认值为真
public IGridLinesPanel GridLinesPanel { get; }
value = ultrachartSurface.GridLinesPanel
获得绘制网格线的 GridLinesPanel
public Style GridLinesPanelStyle { get; set; }
value = ultrachartSurface.GridLinesPanelStyle
ultrachartSurface.GridLinesPanelStyle = value
Gets or sets the GridLinesPanel style.
public bool IsPolarChart { get; private set; }
value = ultrachartSurface.IsPolarChart
ultrachartSurface.IsPolarChart = value
获得此 UltrachartSurface 是否为极地图
public ItemsPanelTemplate LeftAxesPanelTemplate { get; set; }
value = ultrachartSurface.LeftAxesPanelTemplate
ultrachartSurface.LeftAxesPanelTemplate = value
获取或设置用于定义控制左向轴布局的面板的模板
public ObservableCollection<IRenderableSeries> RenderableSeries { get; set; }
value = ultrachartSurface.RenderableSeries
ultrachartSurface.RenderableSeries = value
获得RenderableSeries的收藏, 以图图取出 UltrachartSurface 。
public Style RenderSurfaceStyle { get; set; }
value = ultrachartSurface.RenderSurfaceStyle
ultrachartSurface.RenderSurfaceStyle = value
Gets or sets the RenderSurface style.
public ItemsPanelTemplate RightAxesPanelTemplate { get; set; }
value = ultrachartSurface.RightAxesPanelTemplate
ultrachartSurface.RightAxesPanelTemplate = value
获取或设置定义控制右向轴布局的面板的模板
public ObservableCollection<IRenderableSeries> SelectedRenderableSeries { get; private set; }
value = ultrachartSurface.SelectedRenderableSeries
ultrachartSurface.SelectedRenderableSeries = value
获取所选的 RenderableSeries 的收藏 。
public ObservableCollection<IChartSeriesViewModel> SeriesSource { get; set; }
value = ultrachartSurface.SeriesSource
ultrachartSurface.SeriesSource = value
SeriesSource 属性允许将 IChartSeriesViewModel 实例集装入数据,用于 DataSeries 与 IRenderableSeries 的对齐
internal IStackedColumnsWrapper StackedColumnsWrapper { get; set; }
value = ultrachartSurface.StackedColumnsWrapper
ultrachartSurface.StackedColumnsWrapper = value
获取允许用户自定义绘制 StackedColumnRenderableSeries 的 StackedColumnsWrapper
internal IStackedMountainsWrapper StackedMountainsWrapper { get; set; }
value = ultrachartSurface.StackedMountainsWrapper
ultrachartSurface.StackedMountainsWrapper = value
获取允许用户自定义绘制 StackedMountainRenderableSeries 的 StackedMountainsWrapper
public ItemsPanelTemplate TopAxesPanelTemplate { get; set; }
value = ultrachartSurface.TopAxesPanelTemplate
ultrachartSurface.TopAxesPanelTemplate = value
获取或设置用于定义控制顶相轴布局的面板的模板
public static string VersionAndLicenseInfo { get; }
value = UltrachartSurface.VersionAndLicenseInfo
返回版本和许可信息作为格式化字符串
public IViewportManager ViewportManager { get; set; }
value = ultrachartSurface.ViewportManager
ultrachartSurface.ViewportManager = value
获取或设置图上处理渲染时视图端口行为的 ViewportManager 实例
public AxisCollection XAxes { get; set; }
value = ultrachartSurface.XAxes
ultrachartSurface.XAxes = value
获得X轴IA轴的收集,UltrachartSurface针对此轴的措施来对抗
public IAxis XAxis { get; set; }
value = ultrachartSurface.XAxis
ultrachartSurface.XAxis = value
获取或设置 UltrachartSurface 上的主轴(默认侧=Bottom)
public AxisCollection YAxes { get; set; }
value = ultrachartSurface.YAxes
ultrachartSurface.YAxes = value
收集到Y轴线的轴线,UltrachartSurface针对
public IAxis YAxis { get; set; }
value = ultrachartSurface.YAxis
ultrachartSurface.YAxis = value
获取或设定% UltrachartSurface +% 上的 YAAXs (默认侧=右)
public ICommand ZoomExtentsCommand { get; set; }
value = ultrachartSurface.ZoomExtentsCommand
ultrachartSurface.ZoomExtentsCommand = value
获取或设置缩放范围命令,当引用时,会使 UltrachartSurface 缩放到可达到的程度
方法
public void AnimateZoomExtents(TimeSpan duration)
ultrachartSurface.AnimateZoomExtents(duration)
缩小到指定动画持续时间的地平面
- duration
- 缩放到等宽时动画的持续时间
public void AnimateZoomExtentsX(TimeSpan duration)
ultrachartSurface.AnimateZoomExtentsX(duration)
将图表缩放到 X 方向中的数据范围, 使用指定时间的动画
- duration
- 动画的长度
public void AnimateZoomExtentsY(TimeSpan duration)
ultrachartSurface.AnimateZoomExtentsY(duration)
将图表缩放到 Y 方向中的数据范围, 将当前数据计入 X 方向中
- duration
public void AttachDataSeries(IDataSeries dataSeries)
ultrachartSurface.AttachDataSeries(dataSeries)
附加%% DataSeries.DataSeriesChanged 的收听器
- dataSeries
public void DecrementSuspend()
ultrachartSurface.DecrementSuspend()
每次处置目标悬浮器时, IUpdateSuspender 都会被调用。 当最终目标悬浮器被处理后, ResumeUpdates 被调用 。
public void DetachDataSeries(IDataSeries dataSeries)
ultrachartSurface.DetachDataSeries(dataSeries)
DataSeries.DataSeriesChanged 的调试器
- dataSeries
public BitmapSource ExportToBitmapSource()
result = ultrachartSurface.ExportToBitmapSource()
导出当前 UltrachartSurface 的快照到 BitmapSource
public void ExportToFile(string fileName, ExportType exportType)
ultrachartSurface.ExportToFile(fileName, exportType)
保存当前 UltrachartSurface 的快照到文件
- fileName
- exportType
- 定义要导出的文件格式
public Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = ultrachartSurface.GetBoundsRelativeTo(relativeTo)
获取当前 & ###HitTestable### 元素相对于另一个 & ##HitTestable#% 元素的界限
- relativeTo
- 相对之.
public XmlSchema GetSchema()
result = ultrachartSurface.GetSchema()
返回一个 XmlSchema, 描述由 WriteXml 方法所生成、 由 ReadXml 方法所消耗的物体的 XML 表示
public IRange GetWindowedYRange(IAxis yAxis, IRange xRange)
result = ultrachartSurface.GetWindowedYRange(yAxis, xRange)
使用 GrowBy () 的“ 窗口” =“ 在当前视图中播放 ”
- yAxis
- xRange
public bool IsPointWithinBounds(Point point)
result = ultrachartSurface.IsPointWithinBounds(point)
如果点位于当前 HitTestable 元素的边界内, 返回真值
- point
- 测试点
返回值: 如果点在界限内, 则为真
protected override Size MeasureOverride(Size constraint)
result = ultrachartSurface.MeasureOverride(constraint)
召来重测一控制.
- constraint
- 方法可以返回的最大大小 。
返回值: 控件的大小,最高可达.
public override void OnApplyTemplate()
ultrachartSurface.OnApplyTemplate()
当在衍生类中被覆盖时, 当应用程序代码或内部进程(如重建版式通过) 调用 ApplyTemplate 时, 就会被引用。 最简单的是, 这意味着在应用程序中显示一个 UI 元素之前, 这种方法就被称为 。 更多信息请参见备注 。
public Size OnArrangeUltrachart()
result = ultrachartSurface.OnArrangeUltrachart()
内部为一个适配的通道做准备,返回取景口大小
返回值: 所需的视图端口大小
public void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldValue)
ultrachartSurface.OnAxisAlignmentChanged(axis, oldValue)
AxisAlignment更改时由Ultrachart内部调用. 允许 UltrachartSurface 调整轴位, args.g. 位于上, 左, 下, 右
- axis
- oldValue
protected override void OnDataContextChanged(DependencyPropertyChangedEventArgs e)
ultrachartSurface.OnDataContextChanged(e)
当UltrachartSurfaceBase DataContext改变时调用.
- e
- 包含事件数据的 DependencyPropertyChangedEventArgs 实例 。
public void OnIsCenterAxisChanged(IAxis axis)
ultrachartSurface.OnIsCenterAxisChanged(axis)
IsCenterAxis 更改时由 Ultrachart 内部调用。 允许 UltrachartSurface 将轴置于图表中心
- axis
public override void OnUltrachartRendered()
ultrachartSurface.OnUltrachartRendered()
提高被渲染出的事件,在屏幕显示前立即向渲染口令的末尾开火
protected override void OnUltrachartSurfaceLoaded()
ultrachartSurface.OnUltrachartSurfaceLoaded()
当 UltrachartSurfaceBase 装入时调用。 在此执行初始化操作 。
protected override void OnUltrachartSurfaceSizeChanged()
ultrachartSurface.OnUltrachartSurfaceSizeChanged()
当 UltrachartSurfaceBase 大小改变时调用。 执行此操作会让表面大小调整或重绘操作
protected override void OnUltrachartSurfaceUnloaded()
ultrachartSurface.OnUltrachartSurfaceUnloaded()
当UltrachartSurfaceBase被卸载并从视觉树上移除时调用。 在此执行清理操作
public void Print(string description)
ultrachartSurface.Print(description)
输出当前 UltrachartSurface 到打印机
- description
- 打印工作说明
public virtual void ReadXml(XmlReader reader)
ultrachartSurface.ReadXml(reader)
从它的XML 代表生成 UltrachartSurface 。
- reader
protected override void RegisterServices(IServiceContainer serviceContainer)
ultrachartSurface.RegisterServices(serviceContainer)
UltrachartSurfaceBase 的构建者, 给衍生的类人提供注册服务的机会。
返回值: 人口稠密的 IServiceContainer 。 不可返回无效。 至少返回一个空的 ServiceContainer 。
public void ResumeUpdates(IUpdateSuspender updateSuspender)
ultrachartSurface.ResumeUpdates(updateSuspender)
续集目标更新,计划由IUpdateSuspender调用
public IUpdateSuspender SuspendUpdates()
result = ultrachartSurface.SuspendUpdates()
悬停绘制目标上的最新消息, 直至返回对象处理完毕, 此时将发出最后的绘图调用
返回值: 可支配更新悬浮器
public Point TranslatePoint(Point point, IHitTestable relativeTo)
result = ultrachartSurface.TranslatePoint(point, relativeTo)
将点相对于其他可测试元素翻译
- point
- 关键是...
- relativeTo
- 相对之.
public virtual void WriteXml(XmlWriter writer)
ultrachartSurface.WriteXml(writer)
Converts UltrachartSurface into its XML representation.
- writer
public virtual void ZoomExtents()
ultrachartSurface.ZoomExtents()
将图表缩放到数据的范围, 加上 X 或 Y 的分数集
public void ZoomExtentsY()
ultrachartSurface.ZoomExtentsY()
将图表缩放到 Y 方向中的数据范围, 将当前数据计入 X 方向中
事件
public event EventHandler AnnotationsCollectionNewCollectionAssigned
ultrachartSurface.AnnotationsCollectionNewCollectionAssigned += handler
更改说明后提出的事件
public event EventHandler<AxisAlignmentChangedEventArgs> AxisAlignmentChanged
ultrachartSurface.AxisAlignmentChanged += handler
当任何轴线的对齐发生变化时引发的事件
public event EventHandler XAxesCollectionNewCollectionAssigned
ultrachartSurface.XAxesCollectionNewCollectionAssigned += handler
XAxes {}}}}}} 更改时的事件
public event EventHandler YAxesCollectionNewCollectionAssigned
ultrachartSurface.YAxesCollectionNewCollectionAssigned += handler
改变YAXES DependnecyProperty时引发的事件
字段
public static readonly DependencyProperty AnimateZoomExtentsCommandProperty
value = UltrachartSurface.AnimateZoomExtentsCommandProperty
定义 ZoomExtentsCommand DependencyProperty 定义
public static readonly DependencyProperty AnnotationsProperty
value = UltrachartSurface.AnnotationsProperty
定义说明 DependencyProperty
public static readonly DependencyProperty AutoRangeOnStartupProperty
value = UltrachartSurface.AutoRangeOnStartupProperty
定义 AutoRangeOnStartup DependencyProperty 定义
public static readonly DependencyProperty BottomAxesPanelTemplateProperty
value = UltrachartSurface.BottomAxesPanelTemplateProperty
定义 RightAxisPanelTemplate DependencyProperty 定义
public static readonly DependencyProperty ChartModifierProperty
value = UltrachartSurface.ChartModifierProperty
定义 ChartModifier DependencyProperty 定义
public static readonly DependencyProperty ClipOverlayAnnotationsProperty
value = UltrachartSurface.ClipOverlayAnnotationsProperty
定义 ClipOverlayAnnotations DepedencyProperty 定义
public static readonly DependencyProperty ClipUnderlayAnnotationsProperty
value = UltrachartSurface.ClipUnderlayAnnotationsProperty
定义 ClipUnderlayAnnotations DependencyProperty 定义
public static readonly DependencyProperty GridLinesPanelStyleProperty
value = UltrachartSurface.GridLinesPanelStyleProperty
定义 GridLinesPanelStyle DependencyProperty 定义
public static readonly DependencyProperty IsPolarChartProperty
value = UltrachartSurface.IsPolarChartProperty
定义 IsPolarChart DependencyProperty 定义
public static readonly DependencyProperty LeftAxesPanelTemplateProperty
value = UltrachartSurface.LeftAxesPanelTemplateProperty
定义 LeftAxisPanelTemplate DependencyProperty 定义
public static readonly DependencyProperty RenderableSeriesProperty
value = UltrachartSurface.RenderableSeriesProperty
定义 RenderableSeries DependencyProperty 定义
public static readonly DependencyProperty RenderSurfaceStyleProperty
value = UltrachartSurface.RenderSurfaceStyleProperty
定义 RenderSurfaceStyle DependencyProperty 定义
public static readonly DependencyProperty RightAxesPanelTemplateProperty
value = UltrachartSurface.RightAxesPanelTemplateProperty
定义 RightAxisPanelTemplate DependencyProperty 定义
public static readonly DependencyProperty SelectedRenderableSeriesProperty
value = UltrachartSurface.SelectedRenderableSeriesProperty
定义 SelectedRenderableSeries DependencyProperty 定义
public static readonly DependencyProperty SeriesSourceProperty
value = UltrachartSurface.SeriesSourceProperty
定义 SeriesSource DependencyProperty 定义
public static readonly DependencyProperty TopAxesPanelTemplateProperty
value = UltrachartSurface.TopAxesPanelTemplateProperty
定义 RightAxisPanelTemplate DependencyProperty 定义
public static readonly DependencyProperty ViewportManagerProperty
value = UltrachartSurface.ViewportManagerProperty
定义 ViewportManager DependencyProperty 定义
public static readonly DependencyProperty XAxesProperty
value = UltrachartSurface.XAxesProperty
Defines the YAxes DependencyProperty
public static readonly DependencyProperty XAxisProperty
value = UltrachartSurface.XAxisProperty
Defines the XAxis DependencyProperty
public static readonly DependencyProperty YAxesProperty
value = UltrachartSurface.YAxesProperty
Defines the YAxes DependencyProperty
public static readonly DependencyProperty YAxisProperty
value = UltrachartSurface.YAxisProperty
Defines the YAxis DependencyProperty
public static readonly DependencyProperty ZoomExtentsCommandProperty
value = UltrachartSurface.ZoomExtentsCommandProperty
定义 ZoomExtentsCommand DependencyProperty 定义