开发者

Selected item in simultaneously in two listviews

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜