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