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();
2321
Debug.Assert(
_toSelect
.Count <= 1, "_toSelect.Count was > 1");
2323
if (
_toSelect
.Count == 1) // this is all that should be selected, unselect _selectedItems
2356
_toSelect
.Add(info);
2362
if (_toUnselect.Count > 0 ||
_toSelect
.Count > 0)
2404
using (
_toSelect
.DeferRemove())
2407
if (
_toSelect
.ResolvedCount > 0)
2409
List<ItemInfo> toRemove = (
_toSelect
.UnresolvedCount > 0)
2412
foreach (ItemInfo info in
_toSelect
)
2434
_toSelect
.Remove(info);
2447
for (int index = 0;
_toSelect
.UnresolvedCount > 0 && index < _owner.Items.Count; ++index)
2451
if (
_toSelect
.Contains(key) && !_owner._selectedItems.Contains(info))
2456
_toSelect
.Remove(key);
2527
if (!key.IsKey &&
_toSelect
.Contains(key)) return false;
2530
if (!_owner.CanSelectMultiple &&
_toSelect
.Count > 0)
2535
foreach (ItemInfo item in
_toSelect
)
2539
_toSelect
.Clear();
2542
_toSelect
.Add(info);
2562
if (
_toSelect
.Remove(key))
2607
if (
_toSelect
.Count > 0)
2609
_toSelect
.Clear();