silverlight 的鼠标悬停/悬停事件的淡入淡出效果?
我在地图/地图控件上的网格中有一组按钮。我一直在尝试找出如何使按钮和网格通常不可见,但当用户将指针悬停在它们上方时立即出现。建议?
I have a set of buttons in a grid on a Map/MapControl. I've been trying to figure out how to make it so that the buttons and the grid are usually invisible, but appear as soon as the user hovers their pointer over them. Suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://msmvps.com/blogs/theproblemsolver/archive/2009/02/17/changing-the-mouseover-effect-on-a-silverlight-listbox.aspx
这是一个文章介绍了设置各种视觉状态的教程(使用混合)。页面下方大约 3/4 处有一个示例 xaml 片段。查找此部分:
您可以更改不透明度,而不是更改比例...对于 Blend-Challenged(像我一样)来说,没有理由不能在 Visul Studio 中编写此内容。
另请参阅 http://jesseliberty.com/2010/07/ 09/visual-state-manager-az/ 获取一组使用 Visial State Manager 强大功能的教程。
http://msmvps.com/blogs/theproblemsolver/archive/2009/02/17/changing-the-mouseover-effect-on-a-silverlight-listbox.aspx
Here is an article that goes through a tutorial (using blend) to setup various Visual States. About 3/4 down the page there is a sample xaml snippet. Look for this section:
Instead of changing the scale, you could change the Opacity... There's no reason this can't be written in Visul Studio, for the Blend-Challenged (like myself).
Also, refer to http://jesseliberty.com/2010/07/09/visual-state-manager-a-z/ for a set of tutorials for using the huge capabilities of the Visial State Manager.