private void AddLabel_Click(object sender, RoutedEventArgs e) { AnnotationSchemeSegment item = new AnnotationSchemeSegment() { Label = "", Color = Colors.Black }; items.Add(item); LabelsListBox.SelectedItem = item; LabelsListBox.ScrollIntoView(item); }
private void AddLabel_Click(object sender, RoutedEventArgs e) { Label item = new Label() { Name = "", Color = Colors.Black }; items.Add(item); LabelsListBox.SelectedItem = item; LabelsListBox.ScrollIntoView(item); }