示例#1
0
        private void EditPhoto(object sender, RoutedEventArgs e)
        {
            var pvWindow = new PhotoViewer {
                SelectedPhoto = (Photo)PhotosListBox.SelectedItem
            };

            pvWindow.Show();
        }
示例#2
0
 private void EditPhoto(object sender, RoutedEventArgs e)
 {
     var pvWindow = new PhotoViewer {SelectedPhoto = (Photo) PhotosListBox.SelectedItem};
     pvWindow.Show();
 }