[DefaultProperty("Content")] [ContentProperty("Content")] [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)] [XmlLangProperty("Language")] [UsableDuringInitialization(true)] [RuntimeNameProperty("Name")] [UidProperty("Uid")] [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)] [NameScopeProperty("NameScope", System.Windows.NameScope)] public abstract class BitmapSpriteBase : BasePointMarker, IPointMarker
public class StarPointMarker : BitmapSpriteBase { // RenderToCache draws once, and the resultant cached bitmap is repeated using SciChart's fast drawing engine protected override void RenderToCache(IRenderContext2D context, IPen2D strokePen, IBrush2D fillBrush) { var offset = 2d; var polygon = new Point[] { new Point(Width/2, 0), new Point(Width/2 + offset, Height/2 - offset), new Point(Width, Height/2), new Point(Width/2 + offset, Height/2 + offset), new Point(Width/2, Height), new Point(Width/2-offset, Height/2+offset), new Point(0, Height/2), new Point(Width/2-offset, Height/2-offset), new Point(Width/2, 0) }; context.FillPolygon(fillBrush, polygon); context.DrawLines(strokePen, polygon); } }
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
SciChart.Charting.Visuals.PointMarkers.BasePointMarker
SciChart.Charting.Visuals.PointMarkers.BitmapSpriteBase
SciChart.Charting.Visuals.PointMarkers.CrossPointMarker
SciChart.Charting.Visuals.PointMarkers.EllipsePointMarker
SciChart.Charting.Visuals.PointMarkers.InvertedTrianglePointMarker
SciChart.Charting.Visuals.PointMarkers.SpritePointMarker
SciChart.Charting.Visuals.PointMarkers.SquarePointMarker
SciChart.Charting.Visuals.PointMarkers.TrianglePointMarker
SciChart.Charting.Visuals.PointMarkers.XPointMarker
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
BitmapSpriteBase Members
SciChart.Charting.Visuals.PointMarkers Namespace
BasePointMarker Class
BitmapSpriteBase Class
CrossPointMarker Class
EllipsePointMarker Class
InvertedTrianglePointMarker Class
SpritePointMarker Class
SquarePointMarker Class
TrianglePointMarker Class
XPointMarker Class