如何在RadiobuttonList项目上设置悬停效果? [英] How to set hover effect on RadiobuttonList items?
本文介绍了如何在RadiobuttonList项目上设置悬停效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个RadiobuttonList控件数据包,我想在每个项目上设置悬停效果。
我还想更改所选单选按钮的颜色。最后一个问题,我可以从后面的代码设置所选收音机的颜色吗?
有可能帮助我吗?
谢谢
Well i have a RadiobuttonList control databound and i want to set hover effect on each item.
Also i want to change the color of selected radiobutton. And one last question, can i set the color of selected radio from code behind?
Is it possible to help me?
Thanks
推荐答案
您尚未指定UI堆栈,但它们应基本相同,因为您将使用工具提示。 />
http://msdn.microsoft.com/en-us/library/system.windows.controls.tooltipservice(v = vs.85).aspx [ ^ ]
要更改颜色,只需设置样式中的颜色即可。您不需要触及后面的代码。
You have not specified the UI stack but they should be essentially the same for this in that you will use the tooltip.
http://msdn.microsoft.com/en-us/library/system.windows.controls.tooltipservice(v=vs.85).aspx[^]
For changing the color just set the color in the style. You should not need to touch code behind.
这篇关于如何在RadiobuttonList项目上设置悬停效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文