1 write to _owner
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2262
_owner
= s;
39 references to _owner
PresentationFramework (39)
System\Windows\Controls\Primitives\Selector.cs (39)
2282
Debug.Assert(
_owner
.CheckAccess());
2295
Debug.Assert(
_owner
.CheckAccess());
2308
_owner
.UpdatePublicSelectionProperties();
2320
if (
_owner
.IsSynchronizedWithCurrentItemPrivate)
2321
_owner
.SetCurrentToSelected();
2322
_owner
.InvokeSelectionChanged(unselected, selected);
2328
if (!
_owner
.CanSelectMultiple)
2334
_toUnselect = new InternalSelectedItemsStorage(
_owner
._selectedItems);
2339
if (
_owner
._selectedItems.Count > 1 &&
_owner
._selectedItems.Count != _toUnselect.Count + 1)
2342
ItemInfo selectedItem =
_owner
._selectedItems[0];
2345
foreach (ItemInfo info in
_owner
._selectedItems)
2363
if (
_owner
.Items.Contains(info.Item))
2375
using (
_owner
._selectedItems.DeferRemove())
2383
_owner
.ItemSetIsSelected(info, false);
2384
if (
_owner
._selectedItems.Remove(info))
2400
ItemInfo match =
_owner
._selectedItems.FindMatch(ItemInfo.Key(info));
2403
_owner
.ItemSetIsSelected(match, false);
2404
_owner
._selectedItems.Remove(match);
2425
_owner
.ItemSetIsSelected(info, true);
2426
if (!
_owner
._selectedItems.Contains(info))
2428
_owner
._selectedItems.Add(info);
2456
for (int index = 0; _toSelect.UnresolvedCount > 0 && index <
_owner
.Items.Count; ++index)
2458
ItemInfo info =
_owner
.NewItemInfo(
_owner
.Items[index], null, index);
2460
if (_toSelect.Contains(key) && !
_owner
._selectedItems.Contains(info))
2462
_owner
.ItemSetIsSelected(info, true);
2463
_owner
._selectedItems.Add(info);
2505
Debug.Assert(
_owner
.CheckAccess());
2515
if (!
_owner
.Items.Contains(info.Item))
2533
if (
_owner
._selectedItems.Contains(info)) return false;
2539
if (!
_owner
.CanSelectMultiple && _toSelect.Count > 0)
2546
_owner
.ItemSetIsSelected(item, false);
2562
Debug.Assert(
_owner
.CheckAccess());
2577
if (!
_owner
._selectedItems.Contains(key)) return false;
2600
Debug.Assert(
_owner
.CheckAccess());
2642
for (int i =
_owner
._selectedItems.Count - 1; i >= 0; i--)
2644
if (info !=
_owner
._selectedItems[i])
2646
Unselect(
_owner
._selectedItems[i]);