UltrachartSurfaceBase
An abstract base class containing shared code between different implementations of UltrachartSurface
Hereda de: Control
Implementa: IUltrachartSurfaceBase, ISuspendable, IInvalidatableElement
Constructores
UltrachartSurfaceBase()
Initializes a new instance of the UltrachartSurfaceBase class.
Propiedades
ChartTitle : string
Gets or sets an optional Chart Title, displayed above the chart surface
ClipModifierSurface : bool
Gets or sets a value whether to clip the ChartModifierSurface property to bounds. Fefault false
DebugWhyDoesntUltrachartRender : bool
Gets or sets a flag whether Ultrachart should output rendering exceptions and 'Why Ultrachart Doesn't Render' reasons to the Debug Console. Default is True.
IsDisposed : bool
True if the UltrachartSurfaceBase has been disposed. If so do not draw!
IsSuspended : bool
Gets a value indicating whether updates for the target are currently suspended
IsUltrachartSurfaceLoaded : bool
True if the UltrachartSurfaceBase has been Loaded
MaxFrameRate : double?
Gets or sets the Maximum Framerate of this UltrachartSurface in Hertz (Frames per Second). Default is 100.0
ModifierSurface : IChartModifierSurface
Gets the ModifierSurface, which is used to draw primitives for the Chart Modifiers
RenderPriority : RenderPriority
Gets or sets the RenderPriority. The default is Normal
RenderSurface : IRenderSurface
Gets or sets the RenderSurface implementation that this UltrachartSurfaceBase uses. Default implementation for a UltrachartSurface is a HighSpeedRenderSurface, however Ultrachart supports additional render surfaces, providing high quality software and high speed hardware accelerated or 3D renderers.
RootGrid : IMainGrid
Gets the Root Grid that hosts the Ultrachart RenderSurface, GridLinesPanel, X-Axis and Y-Axes (Left and right)
Services : IServiceContainer
Gets the ServiceContainer which provides access to services throughout Ultrachart. ServiceContainers are created one per UltrachartSurface instance, and shared between peripheral components such as AxisBase, BaseRenderableSeries, ChartModifierBase instances. For a full list of available services, see the remarks on ServiceContainer
Métodos
DecrementSuspend()
Called by IUpdateSuspender each time a target suspender is disposed. When the final target suspender has been disposed, ResumeUpdates is called
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
DoDrawingLoop()
The inner drawing loop. Called once per frame. Do your drawing here.
Finalize()
Finalizes an instance of the UltrachartSurface class.
GetAndAssertTemplateChild``1(string)
Gets the TemplateChild by the specified name and casts to type , asserting that the result is not null
- childName
- Name of the templated part.
Devuelve: The template part instance
InvalidateElement()
Asynchronously requests that the element redraws itself plus children. Will be ignored if the element is ISuspendable and currently IsSuspended (within a SuspendUpdates/ResumeUpdates call)
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
OnDataContextChanged(DependencyPropertyChangedEventArgs)
Called when the UltrachartSurfaceBase DataContext changes.
- e
- The DependencyPropertyChangedEventArgs instance containing the event data.
OnInvalidateUltrachartSurface(DependencyObject, DependencyPropertyChangedEventArgs)
Calls InvalidateElement on the UltrachartSurfaceBase, should be used as the callback for Dependency Properties in UltrachartSurface that should trigger a redraw
- d
- The d.
- e
- The DependencyPropertyChangedEventArgs instance containing the event data.
OnLoad()
Forces initialization of the UltrachartSurface in the case it is being used to render off-screen (on server)
OnRenderSurfaceDependencyPropertyChanged(DependencyPropertyChangedEventArgs)
Called with the RenderSurfaceProperty changes.
- e
- The DependencyPropertyChangedEventArgs instance containing the event data.
OnUltrachartRendered()
Raises the Rendered event, fired at the end of a render pass immediately before presentation to the screen
OnUltrachartSurfaceLoaded()
Called when the UltrachartSurfaceBase is loaded. Perform initialization operations here.
OnUltrachartSurfaceSizeChanged()
Called when the UltrachartSurfaceBase Size changes. Perform render surface resize or redraw operations here
OnUltrachartSurfaceUnloaded()
Called when the UltrachartSurfaceBase is Unloaded and removed from the visual tree. Perform cleanup operations here
RegisterServices(IServiceContainer)
Called in the constructor of UltrachartSurfaceBase, gives derived classes the opportunity to register services per UltrachartSurfaceBase instance
- serviceContainer
- The service container instance.
ResumeUpdates(IUpdateSuspender)
Resumes updates on the target, intended to be called by IUpdateSuspender
- suspender
SuspendUpdates() : IUpdateSuspender
Suspends drawing updates on the target until the returned object is disposed, when a final draw call will be issued
Devuelve: The disposable Update Suspender
Eventos
Rendered : EventHandler<EventArgs>
Event raised at the end of a single render pass
Campos
ChartTitleProperty : DependencyProperty
Defines the ChartTitle DependencyProperty
ClipModifierSurfaceProperty : DependencyProperty
Defines the ClipModifierSurface DependencyProperty
MaxFrameRateProperty : DependencyProperty
Defines the MaxFrameRate DependencyProperty
RenderSurfaceProperty : DependencyProperty
Defines the RenderSurface DependencyProperty