Reputation: 676
I want to change the style of an ListBox, because in WinRT the ListBox have a light background after selecting an item. But I want that the ListBox is still with an transparent background after selecting an item. How can I do this? I don't want to change an ListBoxItem, because there everything is working fine.
Upvotes: 1
Views: 1555
Reputation: 5633
Right click the ListBox, select Edit Template -> Edit a Copy.
Navigate to the Border inside <ControlTemplate TargetType="ListBox">
. Select the Background Property, click the Advanced Options square, select Reset. You can now set the background to whatever you want.
Upvotes: 4