Hello World


Tuesday, June 3, 2008

WPF Custom ListBox (Background Removal Style)


The following Style removes the background selection color from a ListBox in WFP.

Assign this style to the ListBoxes ItemContainerStyle property.
eg:. ItemContainerStyle="{DynamicResource ListBoxItemStyleNoBackGround}"
Where ListBoxItemStyleNoBackGround is the name you gave the Style.
This is usful when you don't want the ListBox to show the default blue background when an item is selected.


ListBox with default Background Selection.


ListBox with Background Selection hidden.




For your Regular Expressions needs goto;

No comments:

4GuysFromRolla.com Headlines