1 write to _owner
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2252
_owner
= s;
39 references to _owner
PresentationFramework (39)
System\Windows\Controls\Primitives\Selector.cs (39)
2272
Debug.Assert(
_owner
.CheckAccess());
2285
Debug.Assert(
_owner
.CheckAccess());
2298
_owner
.UpdatePublicSelectionProperties();
2310
if (
_owner
.IsSynchronizedWithCurrentItemPrivate)
2311
_owner
.SetCurrentToSelected();
2312
_owner
.InvokeSelectionChanged(unselected, selected);
2318
if (!
_owner
.CanSelectMultiple)
2324
_toUnselect = new InternalSelectedItemsStorage(
_owner
._selectedItems);
2329
if (
_owner
._selectedItems.Count > 1 &&
_owner
._selectedItems.Count != _toUnselect.Count + 1)
2332
ItemInfo selectedItem =
_owner
._selectedItems[0];
2335
foreach (ItemInfo info in
_owner
._selectedItems)
2353
if (
_owner
.Items.Contains(info.Item))
2365
using (
_owner
._selectedItems.DeferRemove())
2373
_owner
.ItemSetIsSelected(info, false);
2374
if (
_owner
._selectedItems.Remove(info))
2390
ItemInfo match =
_owner
._selectedItems.FindMatch(ItemInfo.Key(info));
2393
_owner
.ItemSetIsSelected(match, false);
2394
_owner
._selectedItems.Remove(match);
2415
_owner
.ItemSetIsSelected(info, true);
2416
if (!
_owner
._selectedItems.Contains(info))
2418
_owner
._selectedItems.Add(info);
2446
for (int index = 0; _toSelect.UnresolvedCount > 0 && index <
_owner
.Items.Count; ++index)
2448
ItemInfo info =
_owner
.NewItemInfo(
_owner
.Items[index], null, index);
2450
if (_toSelect.Contains(key) && !
_owner
._selectedItems.Contains(info))
2452
_owner
.ItemSetIsSelected(info, true);
2453
_owner
._selectedItems.Add(info);
2495
Debug.Assert(
_owner
.CheckAccess());
2505
if (!
_owner
.Items.Contains(info.Item))
2523
if (
_owner
._selectedItems.Contains(info)) return false;
2529
if (!
_owner
.CanSelectMultiple && _toSelect.Count > 0)
2536
_owner
.ItemSetIsSelected(item, false);
2552
Debug.Assert(
_owner
.CheckAccess());
2567
if (!
_owner
._selectedItems.Contains(key)) return false;
2590
Debug.Assert(
_owner
.CheckAccess());
2632
for (int i =
_owner
._selectedItems.Count - 1; i >= 0; i--)
2634
if (info !=
_owner
._selectedItems[i])
2636
Unselect(
_owner
._selectedItems[i]);