1 write to _owner
PresentationFramework (1)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
2307
_owner
= s;
39 references to _owner
PresentationFramework (39)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (39)
2327
Debug.Assert(
_owner
.CheckAccess());
2340
Debug.Assert(
_owner
.CheckAccess());
2353
_owner
.UpdatePublicSelectionProperties();
2365
if (
_owner
.IsSynchronizedWithCurrentItemPrivate)
2366
_owner
.SetCurrentToSelected();
2367
_owner
.InvokeSelectionChanged(unselected, selected);
2373
if (!
_owner
.CanSelectMultiple)
2379
_toUnselect = new InternalSelectedItemsStorage(
_owner
._selectedItems);
2384
if (
_owner
._selectedItems.Count > 1 &&
_owner
._selectedItems.Count != _toUnselect.Count + 1)
2387
ItemInfo selectedItem =
_owner
._selectedItems[0];
2390
foreach (ItemInfo info in
_owner
._selectedItems)
2408
if (
_owner
.Items.Contains(info.Item))
2420
using (
_owner
._selectedItems.DeferRemove())
2428
_owner
.ItemSetIsSelected(info, false);
2429
if (
_owner
._selectedItems.Remove(info))
2445
ItemInfo match =
_owner
._selectedItems.FindMatch(ItemInfo.Key(info));
2448
_owner
.ItemSetIsSelected(match, false);
2449
_owner
._selectedItems.Remove(match);
2470
_owner
.ItemSetIsSelected(info, true);
2471
if (!
_owner
._selectedItems.Contains(info))
2473
_owner
._selectedItems.Add(info);
2501
for (int index = 0; _toSelect.UnresolvedCount > 0 && index <
_owner
.Items.Count; ++index)
2503
ItemInfo info =
_owner
.NewItemInfo(
_owner
.Items[index], null, index);
2505
if (_toSelect.Contains(key) && !
_owner
._selectedItems.Contains(info))
2507
_owner
.ItemSetIsSelected(info, true);
2508
_owner
._selectedItems.Add(info);
2550
Debug.Assert(
_owner
.CheckAccess());
2560
if (!
_owner
.Items.Contains(info.Item))
2578
if (
_owner
._selectedItems.Contains(info)) return false;
2584
if (!
_owner
.CanSelectMultiple && _toSelect.Count > 0)
2591
_owner
.ItemSetIsSelected(item, false);
2607
Debug.Assert(
_owner
.CheckAccess());
2622
if (!
_owner
._selectedItems.Contains(key)) return false;
2646
Debug.Assert(
_owner
.CheckAccess());
2688
for (int i =
_owner
._selectedItems.Count - 1; i >= 0; i--)
2690
if (info !=
_owner
._selectedItems[i])
2692
Unselect(
_owner
._selectedItems[i]);