Tuesday, September 18, 2007

Mouse Over text color change

This is what Fred told me over at the expression forum.. thanks a ton!

If you want to change the color when the mouse is over the combobox, you need the IsMouseOver event.Click on the +Property button in the triggers panel and a new trigger is added. Choose the IsMouseOver event from the list, and change the foreground color.

Or as we say in xaml...

If you want to change to color of the text in the combobox list, you have to edit the template of a comboboxitem.

A nice tool to help you with editing styles and templates is called ShowMeTheTemplate. You can download it from http://www.sellsbrothers.com/tools/.This program shows you the content of every component.

No comments: