static void OnListViewSelectionChanged(object sender, SelectionChangedEventArgs e)
{
//// Only react to the Selected event raised by the listView
//// whose IsSelected property was modified. Ignore all ancestors
//// who are merely reporting that a descendant's Selected fired.
//if (!Object.ReferenceEquals(sender, e.OriginalSource))
// return;
ListView listView = sender as ListView;
try
{
if (listView != null && e.AddedItems.Count()>0)
listView.ScrollIntoView(e.AddedItems[0]);
}
catch (Exception ex)
{
var st = ex;
}
}