Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
Tooltip Template
posted

Hi,

I viewed a video on the Infragistics forum, that shows Templated Tooltip Controls on XamWebCharts:-

http://community.infragistics.com/silverlight/media/p/196770.aspx

I trawled through the LOB sample code and looked briefly through the forums for example code to do this. I assumed maybe it would be something in a loaded event like:

foreach (DataPoint l_oDataPoint in this.XamWebChart.Series[0].DataPoints)
        l_oDataPoint.ToolTip = new TextBlock() { Text = l_oDataPoint.Value.ToString() };

Although the Tooltip was set to null, everytime the Chart refreshed it's content. To provide a basic Tooltip, I added a Property to my OC that returns a String; then used the DataMapping property to bind to it in my series; which works okay.

Can you please provide me with a code behind example, of how to set the Tooltip on a Chart to a standard Control (exp TextBlock), that can contain bindable/updatable properties like in the Video example posted above. Thanks.