开发者

Reverse highlight in silverlight

开发者 https://www.devze.com 2023-01-08 11:24 出处:网络
I have an items template and I want to highlight some text in a dark color.The problem is that the text starts out as black so I can\'t read it when it is highlighted.

I have an items template and I want to highlight some text in a dark color. The problem is that the text starts out as black so I can't read it when it is highlighted.

What is the best way to turn the text white or reverse highl开发者_JAVA技巧ight it when my mouse goes over the parent border (that is the highlight element)


In your Item Template, you must display content within a new ContentControl and you must change ForeColor property of ContentControl in highlighted state of item template.

0

精彩评论

暂无评论...
验证码 换一张
取 消