I have a WPF ListView , where I bind an observable collection, and below is the code
<ListView Name="WOListView" IsSynchronizedWithCurrentItem="True"
DataContext="{Binding AllItems}"
ItemsSource="{Binding }"
SnapsToDevicePixels="True" Grid.IsSharedSizeScope="True"
customEvents:DoubleClickEvent.HandleDoubleClick="true"
customEvents:DoubleClickEvent.TheCommandToRun="{Binding Path=ItemCommand}"
BorderThickness="0" >
Here I have two issues
1) Dont know why, i always get an item selected when the load the list, and it is always the 1st item the the collection I bind.
2) The selected item is normally show in blue color by default, but when i click out side the listview,rather than deselecting the item.it shows the seleceted item as grey in color