Listbox selected unfocused and hover problem RRS feed

  • Question

  • Can someone please try to help me fix this problem:

    I have a listbox, that I have styled using the States Panel. MouseOver state works fine, selected state works fine, selected unfocused does not seem to work.

    Now my problem is when I have selected an item in the listbox, and then click a button on my application (losing focus on the listbox), then my selection dissapears and the text goes black, then when I hover over the selection, then only it reappears.

    I have tried playing around by adding triggers like: Focused = true and Selected = true and MouseOver = true, where it is supposed to highlight a selected item, then return it back to only being selected, but it stays highlighted.

    And I have also tried some other triggers, but with no luck.

    I would like to play my MouseOver storyboard, And set the Selected color, this must all be the same on focused or unfocused, and my text must stay white, not turn black and make my selected color dissapear.

    Any help using the VSM would be greatly appreaciated, as I'm not to good with XAML coding.

    Thanks again.

    Trust No one

    • Edited by switch13 Friday, March 23, 2012 8:12 AM
    Friday, March 23, 2012 8:10 AM

All replies

  • Could you post the xaml you are using?
    Friday, March 23, 2012 3:40 PM