1 write to _toSelect
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2254_toSelect = new InternalSelectedItemsStorage(1, MatchUnresolvedEqualityComparer);
21 references to _toSelect
PresentationFramework (21)
System\Windows\Controls\Primitives\Selector.cs (21)
2276_toSelect.Clear(); 2320Debug.Assert(_toSelect.Count <= 1, "_toSelect.Count was > 1"); 2322if (_toSelect.Count == 1) // this is all that should be selected, unselect _selectedItems 2355_toSelect.Add(info); 2361if (_toUnselect.Count > 0 || _toSelect.Count > 0) 2403using (_toSelect.DeferRemove()) 2406if (_toSelect.ResolvedCount > 0) 2408List<ItemInfo> toRemove = (_toSelect.UnresolvedCount > 0) 2411foreach (ItemInfo info in _toSelect) 2433_toSelect.Remove(info); 2446for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.Count; ++index) 2450if (_toSelect.Contains(key) && !_owner._selectedItems.Contains(info)) 2455_toSelect.Remove(key); 2526if (!key.IsKey && _toSelect.Contains(key)) return false; 2529if (!_owner.CanSelectMultiple && _toSelect.Count > 0) 2534foreach (ItemInfo item in _toSelect) 2538_toSelect.Clear(); 2541_toSelect.Add(info); 2561if (_toSelect.Remove(key)) 2606if (_toSelect.Count > 0) 2608_toSelect.Clear();