change listview selecteditem background for each listview RRS feed

  • Question

  • I have three different listviews in my app i want to Change The listview selected item background to different color for each listview

     <ResourceDictionary x:Key="Default">
       <SolidColorBrush x:Key="ListViewItemSelectedBackgroundThemeBrush" Color="#367db2"/>

    i used that to change the color but it change all listviews in app i need a different color for each list view selected item

    Wednesday, December 4, 2013 12:19 PM

All replies

  • Hello,

    You'll to style the ListViewItem and set the "SelectedBackground" property to a color you'd like to use for the SelectedItem. This MSDN article explains the usage.


    Wednesday, December 4, 2013 3:45 PM