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

Inherits: ContentControl

Implements: IPointMarker

Constructors

BasePointMarker
protected BasePointMarker()
basePointMarker = BasePointMarker()

Initializes a new instance of the BasePointMarker class.

Properties

AntiAliasing
public bool AntiAliasing { get; set; }
value = basePointMarker.AntiAliasing
basePointMarker.AntiAliasing = value

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

EnableMultithreadedDrawing
public static bool EnableMultithreadedDrawing { get; set; }
value = BasePointMarker.EnableMultithreadedDrawing
BasePointMarker.EnableMultithreadedDrawing = value

PROTOTYPE ONLY: Enables MultiThreaded Drawing for certain BasePointMarker derived types

Fill
public Color Fill { get; set; }
value = basePointMarker.Fill
basePointMarker.Fill = value

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

PointMarkerTemplate
public ControlTemplate PointMarkerTemplate { get; set; }
value = basePointMarker.PointMarkerTemplate
basePointMarker.PointMarkerTemplate = value

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

Stroke
public Color Stroke { get; set; }
value = basePointMarker.Stroke
basePointMarker.Stroke = value

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

StrokeThickness
public double StrokeThickness { get; set; }
value = basePointMarker.StrokeThickness
basePointMarker.StrokeThickness = value

Gets or sets the StrokeThickness of the PointMarker stroke.

Methods

Begin
public virtual void Begin(IRenderContext2D context, IPen2D defaultPen, IBrush2D defaultBrush)
basePointMarker.Begin(context, defaultPen, defaultBrush)

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
public virtual void Dispose()
basePointMarker.Dispose()

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

Draw
public virtual void Draw(IRenderContext2D context, IEnumerable<Point> centers)
basePointMarker.Draw(context, centers)

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
protected abstract void DrawInternal(IRenderContext2D context, double x, double y, IPen2D pen, IBrush2D brush)
basePointMarker.DrawInternal(context, x, y, pen, brush)

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
protected abstract void DrawInternal(IRenderContext2D context, IEnumerable<Point> centers, IPen2D pen, IBrush2D brush)
basePointMarker.DrawInternal(context, centers, pen, brush)

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
public virtual void End(IRenderContext2D context)
basePointMarker.End(context)

Ends a batch draw operation

OnPropertyChanged
protected virtual void OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
basePointMarker.OnPropertyChanged(d, e)

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

d
The sender
e
The arguments

Fields

AntiAliasingProperty
public static readonly DependencyProperty AntiAliasingProperty
value = BasePointMarker.AntiAliasingProperty

Defines the AntiAliasing DependencyProperty

FillProperty
public static readonly DependencyProperty FillProperty
value = BasePointMarker.FillProperty

Defines the Fill DependencyProperty

PointMarkerTemplateProperty
public static readonly DependencyProperty PointMarkerTemplateProperty
value = BasePointMarker.PointMarkerTemplateProperty

Defines the PointMarkerTemplate DependencyProperty

StrokeProperty
public static readonly DependencyProperty StrokeProperty
value = BasePointMarker.StrokeProperty

Defines the Stroke DependencyProperty

StrokeThicknessProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = BasePointMarker.StrokeThicknessProperty

Defines the StrokeThickness DependencyProperty