Interactive Cursor

In the documentation, the following incomplete snippet is given for adding interactive cursors.  Could someone provide a more complete example?
 

[XAML]

//sets the interactive cursor

<Chart:InteractiveCursor

IsInversedLabel="True" OffsetX="100" OffsetY="100"

CursorStrokeThickness="3" VerticalLabelVisibility="Visible"

HorizontalLabelVisibility ="Visible" Cursor="Hand"

IsBindWithSegment="true" HorizontalCursorStroke="Magenta"

VerticalCursorStroke="Magenta">

//sets the vertical template for the Vertical Label

<Chart:InteractiveCursor.VerticalLabelTemplate>

<DataTemplate>

<Grid>

<Label Foreground="GreenYellow" Content="{Binding}"/>

</Grid>

</DataTemplate>

</Chart:InteractiveCursor.VerticalLabelTemplate>

//sets the Horizontal template for the horizontal Label

<Chart:InteractiveCursor.HorizontalLabelTemplate>

<DataTemplate>

<Grid>

<Label Foreground="GreenYellow" Content="{Binding}"/>

</Grid>

</DataTemplate>

</Chart:InteractiveCursor.HorizontalLabelTemplate>

</Chart:InteractiveCursor>

</Chart:SyncChartAreas.InteractiveCursors>


1 Reply

MK Muneesh Kumar G Syncfusion Team July 31, 2013 12:16 PM UTC

Hi Tim,
 
We have prepared a sample based on your requirement. Please find the sample from the following location.

Also you can find the samples for Chart from the below location.
 
Link: C:\Users\<UserName>\AppData\Local\Syncfusion\EssentialStudio\11.2.0.25\WPF\Chart.WPF\Samples
 
Please let us know if you have any queries

Regards,
Muneesh Kumar G.


Interactive_Cursor_Demo_56807732.zip

Loader.
Up arrow icon