1 write to _toSelect
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2255_toSelect = new InternalSelectedItemsStorage(1, MatchUnresolvedEqualityComparer);
21 references to _toSelect
PresentationFramework (21)
System\Windows\Controls\Primitives\Selector.cs (21)
2277_toSelect.Clear(); 2321Debug.Assert(_toSelect.Count <= 1, "_toSelect.Count was > 1"); 2323if (_toSelect.Count == 1) // this is all that should be selected, unselect _selectedItems 2356_toSelect.Add(info); 2362if (_toUnselect.Count > 0 || _toSelect.Count > 0) 2404using (_toSelect.DeferRemove()) 2407if (_toSelect.ResolvedCount > 0) 2409List<ItemInfo> toRemove = (_toSelect.UnresolvedCount > 0) 2412foreach (ItemInfo info in _toSelect) 2434_toSelect.Remove(info); 2447for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.Count; ++index) 2451if (_toSelect.Contains(key) && !_owner._selectedItems.Contains(info)) 2456_toSelect.Remove(key); 2527if (!key.IsKey && _toSelect.Contains(key)) return false; 2530if (!_owner.CanSelectMultiple && _toSelect.Count > 0) 2535foreach (ItemInfo item in _toSelect) 2539_toSelect.Clear(); 2542_toSelect.Add(info); 2562if (_toSelect.Remove(key)) 2607if (_toSelect.Count > 0) 2609_toSelect.Clear();