开发者

Selected item in simultaneously in two listviews

开发者 https://www.devze.com 2023-01-29 17:14 出处:网络
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.

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

精彩评论

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