97 references to SelectionChange
PresentationFramework (97)
System\Windows\Automation\Peers\SelectorItemAutomationPeer.cs (7)
44
parentSelector.
SelectionChange
.SelectJustThisItem(parentSelector.NewItemInfo(Item), true /* assumeInItemsCollection */);
64
parentSelector.
SelectionChange
.Begin();
65
parentSelector.
SelectionChange
.Select(parentSelector.NewItemInfo(Item), true);
66
parentSelector.
SelectionChange
.End();
80
parentSelector.
SelectionChange
.Begin();
81
parentSelector.
SelectionChange
.Unselect(parentSelector.NewItemInfo(Item));
82
parentSelector.
SelectionChange
.End();
System\Windows\Controls\ComboBox.cs (4)
1255
SelectionChange
.SelectJustThisItem(NewItemInfo(item, comboBoxItem), true /* assumeInItemsCollection */);
1574
SelectionChange
.SelectJustThisItem(NewItemInfo(item, container, i), true /* assumeInItemsCollection */);
1854
SelectionChange
.SelectJustThisItem(infoToSelect, true /* assumeInItemsCollection */);
1863
SelectionChange
.SelectJustThisItem(infoToSelect, true /* assumeInItemsCollection */);
System\Windows\Controls\DataGrid.cs (3)
4896
SelectionChange
.Unselect(itemInfo);
4937
SelectionChange
.Unselect(itemInfo);
4957
SelectionChange
.Select(ItemInfoFromIndex(index), true);
System\Windows\Controls\ListBox.cs (6)
796
SelectionChange
.SelectJustThisItem(info, true /* assumeInItemsCollection */);
853
if (!
SelectionChange
.IsActive)
856
SelectionChange
.Begin();
870
SelectionChange
.Unselect(info);
882
SelectionChange
.Select(NewItemInfo(enumerator.Current, null, index), true /* assumeInItemsCollection */);
896
SelectionChange
.End();
System\Windows\Controls\Primitives\Selector.cs (65)
338
if (!s.
SelectionChange
.IsActive)
341
s.
SelectionChange
.SelectJustThisItem(s.ItemInfoFromIndex(newIndex), true /* assumeInItemsCollection */);
391
if (!s.
SelectionChange
.IsActive)
393
s.
SelectionChange
.SelectJustThisItem(s.NewItemInfo(e.NewValue), false /* assumeInItemsCollection */);
470
if (!s.
SelectionChange
.IsActive)
473
s.
SelectionChange
.SelectJustThisItem(info, assumeInItemsCollection:true);
503
SelectionChange
.SelectJustThisItem(NewItemInfo(item, null, index), true /* assumeInItemsCollection */);
535
SelectionChange
.SelectJustThisItem(info, assumeInItemsCollection:true);
652
if (s.
SelectionChange
.IsActive)
810
if (!
SelectionChange
.IsActive)
812
SelectionChange
.Begin();
813
SelectionChange
.CleanupDeferSelection();
823
SelectionChange
.Unselect(NewUnresolvedItemInfo(currentlySelectedItem));
832
if (!
SelectionChange
.Select(NewUnresolvedItemInfo(item), false /* assumeInItemsCollection */))
834
SelectionChange
.Cancel();
840
SelectionChange
.End();
847
SelectionChange
.Cancel();
858
if (
SelectionChange
.IsActive)
868
SelectionChange
.Begin();
878
SelectionChange
.Select(NewUnresolvedItemInfo(e.NewItems[0]), false /* assumeInItemsCollection */);
885
SelectionChange
.Unselect(NewUnresolvedItemInfo(e.OldItems[0]));
889
SelectionChange
.CleanupDeferSelection();
892
SelectionChange
.Unselect(_selectedItems[i]);
899
SelectionChange
.Select(NewUnresolvedItemInfo(userSelectedItems[i]), false /* assumeInItemsCollection */);
907
SelectionChange
.Unselect(NewUnresolvedItemInfo(e.OldItems[0]));
908
SelectionChange
.Select(NewUnresolvedItemInfo(e.NewItems[0]), false /* assumeInItemsCollection */);
918
SelectionChange
.End();
925
SelectionChange
.Cancel();
954
SelectionChange
.Validate();
1040
SelectionChange
.Begin();
1041
SelectionChange
.CleanupDeferSelection();
1048
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1053
SelectionChange
.End();
1062
SelectionChange
.Begin();
1063
SelectionChange
.CleanupDeferSelection();
1070
SelectionChange
.Unselect(info);
1075
SelectionChange
.End();
1146
SelectionChange
.Begin();
1153
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1158
SelectionChange
.End();
1191
SelectionChange
.Validate();
1201
SelectionChange
.CleanupDeferSelection();
1213
SelectionChange
.Begin();
1232
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1240
SelectionChange
.End();
1261
SelectionChange
.Begin();
1276
SelectionChange
.Unselect(info);
1283
SelectionChange
.End();
1426
Debug.Assert(!
SelectionChange
.IsActive, "SelectionChange is already active -- use SelectionChange.Select or Unselect");
1437
SelectionChange
.Begin();
1444
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1448
SelectionChange
.Unselect(info);
1453
SelectionChange
.End();
1502
SelectionChange
.Begin();
1515
SelectionChange
.Cancel();
1538
SelectionChange
.SelectJustThisItem(NewItemInfo(item, null, Items.CurrentPosition), true /* assumeInItemsCollection */);
1543
SelectionChange
.SelectJustThisItem(null, false);
1598
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
1662
bool inSelectionChange =
SelectionChange
.IsActive;
1666
SelectionChange
.Begin();
1673
SelectionChange
.End();
1680
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
1909
if (
SelectionChange
.IsActive || container == _clearingContainer)
2042
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
2054
SelectionChange
.Unselect(info);
System\Windows\Controls\SelectedItemCollection.cs (12)
43
_selector.
SelectionChange
.Unselect(current);
62
_selector.
SelectionChange
.Unselect(_selector.NewItemInfo(this[index]));
83
_selector.
SelectionChange
.Select(_selector.NewItemInfo(item), true /* assumeInItemsCollection */);
187
if (_selector.
SelectionChange
.IsActive || _updatingSelectedItems)
192
_selector.
SelectionChange
.Begin();
200
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
205
_selector.
SelectionChange
.End();
215
return _selector.
SelectionChange
.IsActive || _updatingSelectedItems;
224
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
229
_selector.
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
237
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
242
_selector.
SelectionChange
.Unselect(info);