WPF Charting Documentation - SciChart WPF Charts SDK v5.x
SpritePointMarker Class
Members  Example 
Allows any WPF UIElement to be rendered as a Sprite (bitmap) at each each data-point location using the following XAML syntax
Object Model
SpritePointMarker ClassIPointMarkerBatchStrategy InterfaceIRenderableSeries InterfaceIRenderPassData InterfaceIDataSeries InterfaceIPaletteProvider InterfaceIServiceContainer InterfaceIAxis InterfaceIAxis Interface
Syntax
public class SpritePointMarker : BitmapSpriteBase, IPointMarker  
Remarks
BasePointMarker derived types use fast bitmap rendering to draw data-points to the screen. This means that traditional WPF style tooltips won't work. For that we need to use the HitTest API. Please see the HitTest sections of the user manual for more information
Example
Shows how to instantiate a SpritePointMarker inline in XAML. Note when templating or styling a series, you will need to use the BaseRenderableSeries.PointMarkerTemplate property instead
<s:FastLineRenderableSeries>
   <s:FastLineRenderableSeries.PointMarker>
      <s:SpritePointMarker>
         <s:SpritePointMarker.PointMarkerTemplate>
            <ControlTemplate>
               <!-- This can be any WPF UIElement, rendered as bitmnap and repeated per point -->
               <Ellipse Width="7" Height="7" Fill="Magenta" Stroke="White">
            </ControlTemplate>
         </s:SpritePointMarker.PointMarkerTemplate>
      </s:SpritePointMarker>
   </s:FastLineRenderableSeries.PointMarker>
</s:FastLineRenderableSeries>
Inheritance Hierarchy

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.SpritePointMarker

Requirements

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

See Also

Reference

SpritePointMarker Members
SciChart.Charting.Visuals.PointMarkers Namespace
BasePointMarker Class
BitmapSpriteBase Class
CrossPointMarker Class
EllipsePointMarker Class
InvertedTrianglePointMarker Class
SpritePointMarker Class
SquarePointMarker Class
TrianglePointMarker Class
XPointMarker Class

 

 


SCICHART ® is a Registered Trademark in the UK, US and EU. Copyright SciChart Ltd 2011-2018.

Send Feedback