工具提示装饰器
我正在使用第三方图表库(Infragistics xamChart)。我对工具提示在折线图数据点上的显示方式不满意,因此我正在考虑使用装饰器来制作更好看/交互式的工具提示。
我想要做的是每当一个数据点悬停在上方时就会弹出装饰器。有人对我如何做到这一点有任何指示吗?我发现的大多数装饰器示例都非常简单,只是改变了它们装饰的整个控件。
我的主要问题是:
装饰者是否可以 仅当某些元素存在时才出现 悬停在(并让它出现在 当前光标位置)?
有没有人有一个简单的样本 可以分享吗?
- 装饰者是正确的选择吗 这里?我认为唯一的其他选择 是使用弹出控件,但我 虽然装饰者更好 解决方案。
谢谢。
I am using a third party charting library (Infragistics xamChart). I am not satisfied with how tooltips are displayed on a line charts datapoints so I was thinking of using an adorner to make a better looking/interactive tooltip.
What I want to do is have the adorner popup whenever one of the datapoints is hovered over. Does anyone have any pointers on how I can do this? Most of the adorner samples I found are pretty simple ones that just alter the entire control they are adorning.
My main questions are:
Is it possible for an adorner to
appear only when certain elements are
hovered over (and have it appear at
the current cursor position)?Does anyone have a simple sample they
can share?- Are adorners the right way to go
here? I think the only other option
was to use the popup control but I
though adorners were a nicer
solution.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许
附加行为
可以帮助您?从这篇文章:这样您就可以将侦听器附加到
MouseEnter
事件,并从那里显示您的自定义ToolTip
。Perhaps
Attached Behaviours
could help you? From this article:That way you could attach a listener to the
MouseEnter
event and display your customToolTip
from there.