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();
2320
Debug.Assert(
_toSelect
.Count <= 1, "_toSelect.Count was > 1");
2322
if (
_toSelect
.Count == 1) // this is all that should be selected, unselect _selectedItems
2355
_toSelect
.Add(info);
2361
if (_toUnselect.Count > 0 ||
_toSelect
.Count > 0)
2403
using (
_toSelect
.DeferRemove())
2406
if (
_toSelect
.ResolvedCount > 0)
2408
List<ItemInfo> toRemove = (
_toSelect
.UnresolvedCount > 0)
2411
foreach (ItemInfo info in
_toSelect
)
2433
_toSelect
.Remove(info);
2446
for (int index = 0;
_toSelect
.UnresolvedCount > 0 && index < _owner.Items.Count; ++index)
2450
if (
_toSelect
.Contains(key) && !_owner._selectedItems.Contains(info))
2455
_toSelect
.Remove(key);
2526
if (!key.IsKey &&
_toSelect
.Contains(key)) return false;
2529
if (!_owner.CanSelectMultiple &&
_toSelect
.Count > 0)
2534
foreach (ItemInfo item in
_toSelect
)
2538
_toSelect
.Clear();
2541
_toSelect
.Add(info);
2561
if (
_toSelect
.Remove(key))
2606
if (
_toSelect
.Count > 0)
2608
_toSelect
.Clear();