views:

28

answers:

0

Hi there.

I'm trying to override the default ListBox colour properties when an item is highlighted. However, this XAML code simply causes the text of the highlighted item to disappear completely (or become transparent).

<SolidColorBrush Color="{Binding Path=Foreground, ElementName=UserControl}" x:Key="{x:Static SystemColors.ControlTextBrushKey}" />

Note that the UserControl's 'Foreground' property has been set, so that's not the problem.

Any help would be very much appreciated.