예제 #1
0
 private void listBoxItem_DoubleClick(object sender, MouseButtonEventArgs e)
 {
     this.NewContent = (sender as ListBoxItem).DataContext as NewContentAttribute;
     this.DialogResult = true;
 }
예제 #2
0
 private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     this.NewContent = this.listView.SelectedItem as NewContentAttribute;
     this.DialogResult = true;
 }