Silverlight图表中的自定义工具提示 [英] Custom tooltip in silverlight chart

查看:69
本文介绍了Silverlight图表中的自定义工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai all,
如何在Silverlight中的堆叠柱形图工具提示中显示系列名称.如果有人知道请回复,这非常紧急

hai all,
how to display series name in stackedcolumn chart tooltip in silverlight..its very urgent if anyone know pls reply

<ToolTipService.ToolTip>
                               <StackPanel Margin="3">
                                   <StackPanel.Resources>

                                   </StackPanel.Resources>
                                   <ContentControl DataContext="{TemplateBinding FormattedIndependentValue}" />
                                   <ContentControl DataContext="{TemplateBinding (??SeriesName??)}" />
                                   <ContentControl Content="{TemplateBinding FormattedDependentValue}"/>
                               </StackPanel>
                           </ToolTipService.ToolTip>

推荐答案

不要使用模板绑定,而是绑定到数据.
也许此示例 [
Don''t use template binding, bind to the data instead.
Maybe this example[^] will help you out.


这篇关于Silverlight图表中的自定义工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆