IRenderSurface

StockSharp.Xaml.Charting.Rendering.Common

Common interface for a RenderSurface, RenderSurfaceBase

Implements: IDisposable, IHitTestable, IInvalidatableElement

Properties

IsSizeValidForDrawing
public bool IsSizeValidForDrawing { get; }
value = iRenderSurface.IsSizeValidForDrawing

Returns true if the RenderSurfaceBase size is valid for drawing

NeedsResizing
public bool NeedsResizing { get; }
value = iRenderSurface.NeedsResizing

Returns True if the RenderSurfaceBase size has changed and the viewport needs resizing

Services
public IServiceContainer Services { get; set; }
value = iRenderSurface.Services
iRenderSurface.Services = value

Gets or sets the IServiceContainer instance

Style
public Style Style { get; set; }
value = iRenderSurface.Style
iRenderSurface.Style = value

Gets or sets a Style to apply to the IRenderSurface2D

Methods

Clear
public void Clear()
iRenderSurface.Clear()

Clears the viewport

ClearSeries
public void ClearSeries()
iRenderSurface.ClearSeries()

Clears all IRenderableSeries on the IRenderSurface2D

RecreateSurface
public void RecreateSurface()
iRenderSurface.RecreateSurface()

Recreates the elements required by the Viewport, called once at startup and when the surface is resized

Events

Draw
public event EventHandler<DrawEventArgs> Draw
iRenderSurface.Draw += handler

Raised each time the render surface is to be drawn. Handle this event to paint to the surface

Rendered
public event EventHandler<RenderedEventArgs> Rendered
iRenderSurface.Rendered += handler

Raised immediately after a render operation has completed