1 write to _toSelect
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2264
_toSelect
= new InternalSelectedItemsStorage(1, MatchUnresolvedEqualityComparer);
21 references to _toSelect
PresentationFramework (21)
System\Windows\Controls\Primitives\Selector.cs (21)
2286
_toSelect
.Clear();
2330
Debug.Assert(
_toSelect
.Count <= 1, "_toSelect.Count was > 1");
2332
if (
_toSelect
.Count == 1) // this is all that should be selected, unselect _selectedItems
2365
_toSelect
.Add(info);
2371
if (_toUnselect.Count > 0 ||
_toSelect
.Count > 0)
2413
using (
_toSelect
.DeferRemove())
2416
if (
_toSelect
.ResolvedCount > 0)
2418
List<ItemInfo> toRemove = (
_toSelect
.UnresolvedCount > 0)
2421
foreach (ItemInfo info in
_toSelect
)
2443
_toSelect
.Remove(info);
2456
for (int index = 0;
_toSelect
.UnresolvedCount > 0 && index < _owner.Items.Count; ++index)
2460
if (
_toSelect
.Contains(key) && !_owner._selectedItems.Contains(info))
2465
_toSelect
.Remove(key);
2536
if (!key.IsKey &&
_toSelect
.Contains(key)) return false;
2539
if (!_owner.CanSelectMultiple &&
_toSelect
.Count > 0)
2544
foreach (ItemInfo item in
_toSelect
)
2548
_toSelect
.Clear();
2551
_toSelect
.Add(info);
2571
if (
_toSelect
.Remove(key))
2616
if (
_toSelect
.Count > 0)
2618
_toSelect
.Clear();