2010-12-08 46 views
0

我在頁面上有兩個listViews。我在第一個選擇項目,然後在第二個。我在第一次獲取Unselected時選擇的 項目。在兩個列表中同時選擇的項目

我該如何在兩個列表視圖中選擇一個項目?

回答

0

只需重寫ControlBrush即可設置非活動高亮顏色。

<Style TargetType="ListViewItem"> 
      <Style.Resources> 
       <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="{x:Static SystemColors.HighlightColor}"/> 
      </Style.Resources> 
     </Style> 
相關問題