We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Square in the middle of a crosshair

Thread ID:





121246 Nov 23,2015 03:55 PM UTC Nov 25,2015 08:22 AM UTC WPF 3
Tags: SfChart
Ryan Archibald
Asked On November 23, 2015 03:55 PM UTC

I am wondering if it is possible to have a square in the middle of a cross hair as you move it around the graph, for a line graph, and if it is possible to edit the colour of the label on the x and y axis for the trackball info, the furthest I can get to being close with the color of the label is that the text block has the background but the black surrounds the text block too.

Thanks in advance


Santhiya Arulsamy [Syncfusion]
Replied On November 24, 2015 12:52 PM UTC

Hi Ryan,

Thanks for contacting Syncfusion Support.

Query 1: How to place a square in the middle of the crosshair?

We have prepared a sample to place the square in the intersecting point of the lines by using the CustomCrossHairBehavior. Please find the sample from the following location.


Query 2: How to change the color of axis label?

You can achieve your requirement by using the CrosshairLabelTemplate property in the ChartAxis. Please refer to the following code example.



<DataTemplate x:Key="yCrossLabelTemplate">

<TextBlock Text="{Binding ValueY}" Background="Black" Foreground="White"/>



Santhiya A

Ryan Archibald
Replied On November 24, 2015 01:28 PM UTC

Hi Santhiya

That's great thanks very much 

Santhiya Arulsamy [Syncfusion]
Replied On November 25, 2015 08:22 AM UTC

Hi Ryan,

Thanks for the update.

We will wait until we hear from you.


Santhiya A


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon