1 write to _toSelect
PresentationFramework (1)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
2309
_toSelect
= new InternalSelectedItemsStorage(1, MatchUnresolvedEqualityComparer);
21 references to _toSelect
PresentationFramework (21)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (21)
2331
_toSelect
.Clear();
2375
Debug.Assert(
_toSelect
.Count <= 1, "_toSelect.Count was > 1");
2377
if (
_toSelect
.Count == 1) // this is all that should be selected, unselect _selectedItems
2410
_toSelect
.Add(info);
2416
if (_toUnselect.Count > 0 ||
_toSelect
.Count > 0)
2458
using (
_toSelect
.DeferRemove())
2461
if (
_toSelect
.ResolvedCount > 0)
2463
List<ItemInfo> toRemove = (
_toSelect
.UnresolvedCount > 0)
2466
foreach (ItemInfo info in
_toSelect
)
2488
_toSelect
.Remove(info);
2501
for (int index = 0;
_toSelect
.UnresolvedCount > 0 && index < _owner.Items.Count; ++index)
2505
if (
_toSelect
.Contains(key) && !_owner._selectedItems.Contains(info))
2510
_toSelect
.Remove(key);
2581
if (!key.IsKey &&
_toSelect
.Contains(key)) return false;
2584
if (!_owner.CanSelectMultiple &&
_toSelect
.Count > 0)
2589
foreach (ItemInfo item in
_toSelect
)
2593
_toSelect
.Clear();
2596
_toSelect
.Add(info);
2616
if (
_toSelect
.Remove(key))
2662
if (
_toSelect
.Count > 0)
2664
_toSelect
.Clear();