tags:

views:

413

answers:

3
+1  A: 

Do you need both the "inner" and "outer" items to be selectable? I would probably stick with ItemsControl for the outer list and just let the inner items be selectable. Then you could style ListBoxItem without affecting the "outer" items.

Matt Hamilton
+1  A: 

I agree with Matt (looks like you can just stick an ItemsControl inside a ScrollViewer for the main list), but you can also reset the colors back to their defaults inside the scope for the child ListBoxes:

<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="{x:Static SystemColors.HighlightBrush}"/>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="{x:Static SystemColors.ControlBrush}"/>

HTH, Kent

Kent Boogaart
A: 

Kent, We cannot reset the style using the above mentioned code. Any other option?

Elangovan
Please use the comment function, this is not an answer.
Mikael Sundberg
Users need 50 reputation points to post comments. That's why new users tend to post comments as answers.
jpbochi