在ListViewItem鼠标悬停上显示按钮 [英] Show buttons on ListViewItem mouseover
本文介绍了在ListViewItem鼠标悬停上显示按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用中我想显示一组按钮,当鼠标悬停在ListViewItem上时,就像在Windows 8.1邮件应用中一样。
in my app I would like to show a set of buttons only when the mouse is over a ListViewItem, like in Windows 8.1 mail app.
其中是实现这种行为的最佳方式吗?
Which is the best way to implement this behavior?
推荐答案
您可以编写具有可视状态的自我模板。在模板中放置您的图像并处于可视状态(例如,当事件发生指针时)显示此图像。您可以使用可见性属性执行此操作。
You can write self template with visual states. In template put your images and in visual states (when, for example, occured pointer over event ) display this images. You can do this with visibility property.
问候,Nikita。
这篇关于在ListViewItem鼠标悬停上显示按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文