private void Images_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (e.AddedItems.Count > 0) { MainImage.LoadImage((e.AddedItems[0] as Photo).Path); MainImage.Reset(); } }