Hi to all,
with the UltraWinChart to set the ToolTip template for a Serie was very smart: we set the string with some keys inside () and we finished:UChart.Tooltips.Format = Infragistics.UltraChart.Shared.Styles.TooltipStyle.Custom;UChart.Tooltips.FormatString = "<DATA_VALUE:#,0.00 €">";
Now with xamChart there is more fexibility, but seems that we lost the semplicity.
Probabily it is my bad, but I not fond some "serious" examples about how create a simple TooTip Format to apply to a Serie.
I tryed also a create a DataTemplate and use it, but I was not lucky to bind the the data of node to the elements of DataTemplate.
<
DataTemplate x:Key="toolTipTemplate"><StackPanel><TextBlock x:Name="lblTool" Text="The value is:"/><TextBlock x:Name="val" Text="{Binding Value}"/>// or Path=Value</StackPanel></DataTemplate>
The idea to using a DataTemplate I got from the UNREAL examples of xamFeatureBrowser.
Anyone have any idea?
Thanks,
Davide.
unfortunately, the DataContext of the datapoint is not carried by that DataTemplate ... so the only way to achieve this is to use a separate Tooltip Template for each DataPoint, and place the actual Value in each DataTemplate, instead of trying to bind to it.