I have two listViews on the page. I select Item in the first one and then in the second. The item that I've开发者_如何学C selected in the first getting Unselected.
How can I get to have in both of the listviews a selected item ?
Just override the ControlBrush to set the inactive highlight color.
<Style TargetType="ListViewItem">
<Style.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="{x:Static SystemColors.HighlightColor}"/>
</Style.Resources>
</Style>
精彩评论