I have a listview, when the mouse passes over the items and gives clicking on them, change color. but when the user clicks on an item and it changes color and the user then clicks on another item, the item previously clicked back to its normal color. How to make so that when the user clicks on an item, other items not previously clicked on return to their normal color. As for the user to click on an item a second time, the item returns to its normal color. Xaml code file of eventons are as follows:
<EventTrigger RoutedEvent="Border.MouseEnter" >
<BeginStoryboard>
<Storyboard TargetProperty="(Border.Background).(SolidColorBrush.Color)" >
<ColorAnimation To="#6990EE90" Duration="0:0:0.3" Storyboard.TargetName="border" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="Border.MouseLeave" >
<BeginStoryboard>
<Storyboard TargetProperty="(Border.Background).(SolidColorBrush.Color)">
<ColorAnimation To="Transparent" Duration="0:0:0.3" Storyboard.TargetName="border" />