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.
Unfortunately, activation email could not send to your email. Please try again.

How to bind data in a Tooltip Template

Thread ID:

Created:

Updated:

Platform:

Replies:

114375 Nov 15,2013 05:42 PM Nov 21,2013 03:37 AM WinRT 1
loading
Tags: SfChart
Leigh
Asked On November 15, 2013 05:42 PM

Hi all,

I am trying to customise the tooltip on my chart. My question is how do I bind data in the template it self? I have attached a test project with my current code.

Any help would be great,

Cheers, Leigh.















Test_305e1e22.zip

Muneesh Kumar G [Syncfusion]
Replied On November 21, 2013 03:37 AM

Hi Leigh,

 

Thanks for using Syncfusion Products.

 

We can achieve your requirement by setting Text as per the below code snippet.

 

Code Snippet[XAML]:

 

<DataTemplate x:Key="ToolTipTemplate">

<Grid>

<StackPanel>

…………

<TextBlock Text="{Binding YData}" Margin="0,2,10,0" FontSize="14.666" Foreground="White" FontFamily="Segoeui" VerticalAlignment="Center" HorizontalAlignment="Left" />

</StackPanel>

</Grid>

</DataTemplate>

 

We have modified your sample based on this and you can find the sample under the following location:

Sample : http://www.syncfusion.com/downloads/support/directtrac/115901/ToolTip-46615306.zip

Please let us know if you have any queries.

Regards,

Muneesh Kumar G.


CONFIRMATION

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.

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.

;