BasePointMarker

StockSharp.Xaml.Charting.Visuals.PointMarkers

A base class for Bitmap-rendered Point-Markers, which are small markers drawn once per data-point on a BaseRenderableSeries

Наследует: ContentControl

Реализует: IPointMarker

Конструкторы

BasePointMarker()

Initializes a new instance of the BasePointMarker class.

Свойства

AntiAliasing : bool

Gets or sets the AntiAliasing property, which is used when drawing the stroke

EnableMultithreadedDrawing : bool

PROTOTYPE ONLY: Enables MultiThreaded Drawing for certain BasePointMarker derived types

Fill : Color

Gets or sets the solid color Fill of the PointMarker. May be Transparent to ignore

PointMarkerTemplate : ControlTemplate

Gets or sets the PointMarker ControlTemplate, which defines the point-marker Visual to be rendered on each datapoint of the series

Stroke : Color

Gets or sets the Stroke (the outline) of the PointMarker. May be Transparent to ignore

StrokeThickness : double

Gets or sets the StrokeThickness of the PointMarker stroke.

Методы

Begin(IRenderContext2D, IPen2D, IBrush2D)

Called when a batched draw operation is about to begin. All subsequent draw operations will have the same width, height, rendercontext and pen, brush

Dispose()

Disposes any cached resources, e.g. when the Fill or Stroke is changed, any cached pens or brushes are also disposed

Draw(IRenderContext2D, IEnumerable<Point>)

Renders the PointMarker on each Point passed in with Fill and Stroke values. Each point is a coordinate in the centre of the PointMarker.

context
The RenderContext to draw too
centers
The collection of Points to render the Point Markers at
DrawInternal(IRenderContext2D, double, double, IPen2D, IBrush2D)

When overridden in a derived class, draws the point markers at specified x,y pixel coordinate

context
The RenderContext to draw with
x
The x-coordinate to draw at
y
The y-coordinate to draw at
pen
The default Stroke pen (if current pen is not set)
brush
The default Fill brush (if current brush is not set)
DrawInternal(IRenderContext2D, IEnumerable<Point>, IPen2D, IBrush2D)

When overridden in a derived class, draws the point markers at specified collection of Point centers

context
The RenderContext to draw with
centers
The Centres of the point markers
pen
The default Stroke pen (if current pen is not set)
brush
The default Fill brush (if current brush is not set)
End(IRenderContext2D)

Ends a batch draw operation

OnPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

Should be called when any DependencyProperty value changes on the BasePointMarker derived class

d
The sender
e
The arguments

Поля

AntiAliasingProperty : DependencyProperty

Defines the AntiAliasing DependencyProperty

FillProperty : DependencyProperty

Defines the Fill DependencyProperty

PointMarkerTemplateProperty : DependencyProperty

Defines the PointMarkerTemplate DependencyProperty

StrokeProperty : DependencyProperty

Defines the Stroke DependencyProperty

StrokeThicknessProperty : DependencyProperty

Defines the StrokeThickness DependencyProperty