tags:

views:

26

answers:

1

Hi,

I currently have a listboxitemcontainer, which if selected turns the background blue.

However later I programatically set : Border.Background = new solidcolorbrush(colors.white);

How do I reset the the border background now to use the template colors again? Now when I select the box again, it doesn't turn to the selection color anymore.

+3  A: 
border.ClearValue(Border.BackgroundProperty);

HTH,
Kent

Kent Boogaart
thanks! brilliant
internetmw