97 references to SelectionChange
PresentationFramework (97)
src\Framework\System\Windows\Automation\Peers\SelectorItemAutomationPeer.cs (7)
54
parentSelector.
SelectionChange
.SelectJustThisItem(parentSelector.NewItemInfo(Item), true /* assumeInItemsCollection */);
74
parentSelector.
SelectionChange
.Begin();
75
parentSelector.
SelectionChange
.Select(parentSelector.NewItemInfo(Item), true);
76
parentSelector.
SelectionChange
.End();
90
parentSelector.
SelectionChange
.Begin();
91
parentSelector.
SelectionChange
.Unselect(parentSelector.NewItemInfo(Item));
92
parentSelector.
SelectionChange
.End();
src\Framework\System\Windows\Controls\ComboBox.cs (4)
1267
SelectionChange
.SelectJustThisItem(NewItemInfo(item, comboBoxItem), true /* assumeInItemsCollection */);
1587
SelectionChange
.SelectJustThisItem(NewItemInfo(item, container, i), true /* assumeInItemsCollection */);
1867
SelectionChange
.SelectJustThisItem(infoToSelect, true /* assumeInItemsCollection */);
1876
SelectionChange
.SelectJustThisItem(infoToSelect, true /* assumeInItemsCollection */);
src\Framework\System\Windows\Controls\DataGrid.cs (3)
4904
SelectionChange
.Unselect(itemInfo);
4945
SelectionChange
.Unselect(itemInfo);
4965
SelectionChange
.Select(ItemInfoFromIndex(index), true);
src\Framework\System\Windows\Controls\ListBox.cs (6)
757
SelectionChange
.SelectJustThisItem(info, true /* assumeInItemsCollection */);
814
if (!
SelectionChange
.IsActive)
817
SelectionChange
.Begin();
832
SelectionChange
.Unselect(info);
844
SelectionChange
.Select(NewItemInfo(enumerator.Current, null, index), true /* assumeInItemsCollection */);
859
SelectionChange
.End();
src\Framework\System\Windows\Controls\Primitives\Selector.cs (65)
357
if (!s.
SelectionChange
.IsActive)
360
s.
SelectionChange
.SelectJustThisItem(s.ItemInfoFromIndex(newIndex), true /* assumeInItemsCollection */);
410
if (!s.
SelectionChange
.IsActive)
412
s.
SelectionChange
.SelectJustThisItem(s.NewItemInfo(e.NewValue), false /* assumeInItemsCollection */);
489
if (!s.
SelectionChange
.IsActive)
492
s.
SelectionChange
.SelectJustThisItem(info, assumeInItemsCollection:true);
522
SelectionChange
.SelectJustThisItem(NewItemInfo(item, null, index), true /* assumeInItemsCollection */);
554
SelectionChange
.SelectJustThisItem(info, assumeInItemsCollection:true);
671
if (s.
SelectionChange
.IsActive)
829
if (!
SelectionChange
.IsActive)
831
SelectionChange
.Begin();
832
SelectionChange
.CleanupDeferSelection();
842
SelectionChange
.Unselect(NewUnresolvedItemInfo(currentlySelectedItem));
851
if (!
SelectionChange
.Select(NewUnresolvedItemInfo(item), false /* assumeInItemsCollection */))
853
SelectionChange
.Cancel();
859
SelectionChange
.End();
866
SelectionChange
.Cancel();
877
if (
SelectionChange
.IsActive)
887
SelectionChange
.Begin();
897
SelectionChange
.Select(NewUnresolvedItemInfo(e.NewItems[0]), false /* assumeInItemsCollection */);
904
SelectionChange
.Unselect(NewUnresolvedItemInfo(e.OldItems[0]));
908
SelectionChange
.CleanupDeferSelection();
911
SelectionChange
.Unselect(_selectedItems[i]);
918
SelectionChange
.Select(NewUnresolvedItemInfo(userSelectedItems[i]), false /* assumeInItemsCollection */);
926
SelectionChange
.Unselect(NewUnresolvedItemInfo(e.OldItems[0]));
927
SelectionChange
.Select(NewUnresolvedItemInfo(e.NewItems[0]), false /* assumeInItemsCollection */);
937
SelectionChange
.End();
944
SelectionChange
.Cancel();
973
SelectionChange
.Validate();
1059
SelectionChange
.Begin();
1060
SelectionChange
.CleanupDeferSelection();
1067
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1072
SelectionChange
.End();
1081
SelectionChange
.Begin();
1082
SelectionChange
.CleanupDeferSelection();
1089
SelectionChange
.Unselect(info);
1094
SelectionChange
.End();
1173
SelectionChange
.Begin();
1180
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1185
SelectionChange
.End();
1218
SelectionChange
.Validate();
1228
SelectionChange
.CleanupDeferSelection();
1240
SelectionChange
.Begin();
1259
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1267
SelectionChange
.End();
1288
SelectionChange
.Begin();
1303
SelectionChange
.Unselect(info);
1310
SelectionChange
.End();
1453
Debug.Assert(!
SelectionChange
.IsActive, "SelectionChange is already active -- use SelectionChange.Select or Unselect");
1464
SelectionChange
.Begin();
1471
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1475
SelectionChange
.Unselect(info);
1480
SelectionChange
.End();
1530
SelectionChange
.Begin();
1544
SelectionChange
.Cancel();
1567
SelectionChange
.SelectJustThisItem(NewItemInfo(item, null, Items.CurrentPosition), true /* assumeInItemsCollection */);
1572
SelectionChange
.SelectJustThisItem(null, false);
1627
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
1691
bool inSelectionChange =
SelectionChange
.IsActive;
1695
SelectionChange
.Begin();
1702
SelectionChange
.End();
1709
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
1963
if (
SelectionChange
.IsActive || container == _clearingContainer)
2096
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
2108
SelectionChange
.Unselect(info);
src\Framework\System\Windows\Controls\SelectedItemCollection.cs (12)
52
_selector.
SelectionChange
.Unselect(current);
71
_selector.
SelectionChange
.Unselect(_selector.NewItemInfo(this[index]));
92
_selector.
SelectionChange
.Select(_selector.NewItemInfo(item), true /* assumeInItemsCollection */);
196
if (_selector.
SelectionChange
.IsActive || _updatingSelectedItems)
201
_selector.
SelectionChange
.Begin();
209
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
214
_selector.
SelectionChange
.End();
224
return _selector.
SelectionChange
.IsActive || _updatingSelectedItems;
233
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
238
_selector.
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
246
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
251
_selector.
SelectionChange
.Unselect(info);