Silverlight 工具提示 - 更改 ShowDuration 轻量级
您好,我正在尝试更改工具提示的 ShowDuration
,但 silverlight 不支持此操作。 我不想要 Codeplex 上提供的重量级工具提示解决方案。我当前的想法是在工具提示模板中编辑一些内容。
我查看了 Reflector,但无法在工具提示中找到默认持续时间,因此我认为它是在 xaml 中设置的。 (可能在打开工具提示事件的情节提要中)
此处给出默认工具提示样式 http://msdn.microsoft.com/en-us/library/dd334410(VS.95).aspx。
其中有两个情节提要键,但我在哪里可以找到它们的实现和覆盖?
如果有人发布带有无限持续时间工具提示的模板,我将不胜感激。
这不是此 ShowDuration attribute无法在工具提示中解析的重复项在 silverlight 4 因为我主要是寻找这两个故事板来自己编辑它们,更不用说其他问题没有得到真正的回答
Hi I am trying to change ShowDuration
of tooltip and this is not supported in silverlight.
I dont want a heavyweight tooltip solution that is available on codeplex. My current idea is to edit something in tooltip template.
I looked with reflector and wasn't able to find default duration in tooltip so I think its being set in xaml. ( probably in storyboard for open tooltip event)
default tooltip style is given here http://msdn.microsoft.com/en-us/library/dd334410(VS.95).aspx.
there are two storyboard keys present in it but where can I find their implementation and override?
If someone posted template with for example infinite duration tooltip I would be grateful.
This isn't a duplicate of this ShowDuration attribute cannot resolve in tooltip at silverlight 4 cause I am mainly looking for those 2 storyboards to edit them myself, not to mention other question isn't really answered
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除非您创建自己的
ToolTipService
(请注意,问题是这个服务类而不是 ToolTip 本身),否则您对此无能为力。 5 秒的限制已写入代码中,与 Storyboard 无关。如果您想在 Reflector 中亲自查看这一点,请打开 ToolTipService 类并查看
OpenAutomaticTooltip
方法。There is nothing you can do about it unless you create your own
ToolTipService
(note its this service class not the ToolTip itself that is the problem). The 5 second limit is baked into the code, it has nothing to do with the Storyboards.If you want see this for yourself in Reflector open the ToolTipService class and look at the
OpenAutomaticTooltip
method.