25 references to AddedItems
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.xaml.cs (2)
121if (e.AddedItems.Count > 0) 123var identifierName = e.AddedItems[0].ToString();
Microsoft.VisualStudio.LanguageServices (2)
EditorConfigSettings\SettingsEditorControl.xaml.cs (2)
125var selectedTabItem = e.AddedItems.Count > 0 ? e.AddedItems[0] as TabItem : null;
PresentationFramework (17)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
298int numAdded = e.AddedItems.Count; 302DateTimeAutomationPeer peer = GetOrCreateDateTimeAutomationPeer((DateTime)e.AddedItems[0], CalendarMode.Month); 312foreach (DateTime date in e.AddedItems)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
402int numAdded = e.AddedItems.Count; 420for (i = 0; i < e.AddedItems.Count; i++) 422ItemAutomationPeer peer = FindOrCreateItemAutomationPeer(e.AddedItems[i]);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (2)
157int numAdded = e.AddedItems.Count; 181SelectorItemAutomationPeer peer = FindOrCreateItemAutomationPeer(e.AddedItems[i]) as SelectorItemAutomationPeer;
System\Windows\Controls\Calendar.cs (2)
1124if (e.AddedItems.Count != e.RemovedItems.Count) 1129foreach (DateTime addedDate in e.AddedItems)
System\Windows\Controls\DatePicker.cs (7)
977Debug.Assert(e.AddedItems.Count < 2); 979if (e.AddedItems.Count > 0 && this.SelectedDate.HasValue && DateTime.Compare((DateTime)e.AddedItems[0], this.SelectedDate.Value) != 0) 981this.SetCurrentValueInternal(SelectedDateProperty, (DateTime?)e.AddedItems[0]); 985if (e.AddedItems.Count == 0) 993if (e.AddedItems.Count > 0) 995this.SetCurrentValueInternal(SelectedDateProperty, (DateTime?)e.AddedItems[0]);
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
32TextView.Properties[ProjectionSpanTaggerProvider.PropertyName] = new List<Span>(e.AddedItems.Cast<SnapshotSpan>().Select(ss => ss.Span).Where(ss => !ss.IsEmpty));
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (3)
1128if (e.AddedItems != null && e.AddedItems.Count > 0) 1133SelectedItem = e.AddedItems[0];