97 references to SelectionChange
PresentationFramework (97)
System\Windows\Automation\Peers\SelectorItemAutomationPeer.cs (7)
57
parentSelector.
SelectionChange
.SelectJustThisItem(parentSelector.NewItemInfo(Item), true /* assumeInItemsCollection */);
77
parentSelector.
SelectionChange
.Begin();
78
parentSelector.
SelectionChange
.Select(parentSelector.NewItemInfo(Item), true);
79
parentSelector.
SelectionChange
.End();
93
parentSelector.
SelectionChange
.Begin();
94
parentSelector.
SelectionChange
.Unselect(parentSelector.NewItemInfo(Item));
95
parentSelector.
SelectionChange
.End();
System\Windows\Controls\ComboBox.cs (4)
1265
SelectionChange
.SelectJustThisItem(NewItemInfo(item, comboBoxItem), true /* assumeInItemsCollection */);
1584
SelectionChange
.SelectJustThisItem(NewItemInfo(item, container, i), true /* assumeInItemsCollection */);
1864
SelectionChange
.SelectJustThisItem(infoToSelect, true /* assumeInItemsCollection */);
1873
SelectionChange
.SelectJustThisItem(infoToSelect, true /* assumeInItemsCollection */);
System\Windows\Controls\DataGrid.cs (3)
4899
SelectionChange
.Unselect(itemInfo);
4940
SelectionChange
.Unselect(itemInfo);
4960
SelectionChange
.Select(ItemInfoFromIndex(index), true);
System\Windows\Controls\ListBox.cs (6)
802
SelectionChange
.SelectJustThisItem(info, true /* assumeInItemsCollection */);
859
if (!
SelectionChange
.IsActive)
862
SelectionChange
.Begin();
876
SelectionChange
.Unselect(info);
888
SelectionChange
.Select(NewItemInfo(enumerator.Current, null, index), true /* assumeInItemsCollection */);
902
SelectionChange
.End();
System\Windows\Controls\Primitives\Selector.cs (65)
347
if (!s.
SelectionChange
.IsActive)
350
s.
SelectionChange
.SelectJustThisItem(s.ItemInfoFromIndex(newIndex), true /* assumeInItemsCollection */);
400
if (!s.
SelectionChange
.IsActive)
402
s.
SelectionChange
.SelectJustThisItem(s.NewItemInfo(e.NewValue), false /* assumeInItemsCollection */);
479
if (!s.
SelectionChange
.IsActive)
482
s.
SelectionChange
.SelectJustThisItem(info, assumeInItemsCollection:true);
512
SelectionChange
.SelectJustThisItem(NewItemInfo(item, null, index), true /* assumeInItemsCollection */);
544
SelectionChange
.SelectJustThisItem(info, assumeInItemsCollection:true);
661
if (s.
SelectionChange
.IsActive)
819
if (!
SelectionChange
.IsActive)
821
SelectionChange
.Begin();
822
SelectionChange
.CleanupDeferSelection();
832
SelectionChange
.Unselect(NewUnresolvedItemInfo(currentlySelectedItem));
841
if (!
SelectionChange
.Select(NewUnresolvedItemInfo(item), false /* assumeInItemsCollection */))
843
SelectionChange
.Cancel();
849
SelectionChange
.End();
856
SelectionChange
.Cancel();
867
if (
SelectionChange
.IsActive)
877
SelectionChange
.Begin();
887
SelectionChange
.Select(NewUnresolvedItemInfo(e.NewItems[0]), false /* assumeInItemsCollection */);
894
SelectionChange
.Unselect(NewUnresolvedItemInfo(e.OldItems[0]));
898
SelectionChange
.CleanupDeferSelection();
901
SelectionChange
.Unselect(_selectedItems[i]);
908
SelectionChange
.Select(NewUnresolvedItemInfo(userSelectedItems[i]), false /* assumeInItemsCollection */);
916
SelectionChange
.Unselect(NewUnresolvedItemInfo(e.OldItems[0]));
917
SelectionChange
.Select(NewUnresolvedItemInfo(e.NewItems[0]), false /* assumeInItemsCollection */);
927
SelectionChange
.End();
934
SelectionChange
.Cancel();
963
SelectionChange
.Validate();
1049
SelectionChange
.Begin();
1050
SelectionChange
.CleanupDeferSelection();
1057
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1062
SelectionChange
.End();
1071
SelectionChange
.Begin();
1072
SelectionChange
.CleanupDeferSelection();
1079
SelectionChange
.Unselect(info);
1084
SelectionChange
.End();
1155
SelectionChange
.Begin();
1162
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1167
SelectionChange
.End();
1200
SelectionChange
.Validate();
1210
SelectionChange
.CleanupDeferSelection();
1222
SelectionChange
.Begin();
1241
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1249
SelectionChange
.End();
1270
SelectionChange
.Begin();
1285
SelectionChange
.Unselect(info);
1292
SelectionChange
.End();
1435
Debug.Assert(!
SelectionChange
.IsActive, "SelectionChange is already active -- use SelectionChange.Select or Unselect");
1446
SelectionChange
.Begin();
1453
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
1457
SelectionChange
.Unselect(info);
1462
SelectionChange
.End();
1511
SelectionChange
.Begin();
1524
SelectionChange
.Cancel();
1547
SelectionChange
.SelectJustThisItem(NewItemInfo(item, null, Items.CurrentPosition), true /* assumeInItemsCollection */);
1552
SelectionChange
.SelectJustThisItem(null, false);
1607
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
1671
bool inSelectionChange =
SelectionChange
.IsActive;
1675
SelectionChange
.Begin();
1682
SelectionChange
.End();
1689
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
1918
if (
SelectionChange
.IsActive || container == _clearingContainer)
2051
Debug.Assert(
SelectionChange
.IsActive, "SelectionChange.IsActive should be true");
2063
SelectionChange
.Unselect(info);
System\Windows\Controls\SelectedItemCollection.cs (12)
45
_selector.
SelectionChange
.Unselect(current);
64
_selector.
SelectionChange
.Unselect(_selector.NewItemInfo(this[index]));
85
_selector.
SelectionChange
.Select(_selector.NewItemInfo(item), true /* assumeInItemsCollection */);
189
if (_selector.
SelectionChange
.IsActive || _updatingSelectedItems)
194
_selector.
SelectionChange
.Begin();
202
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
207
_selector.
SelectionChange
.End();
217
return _selector.
SelectionChange
.IsActive || _updatingSelectedItems;
226
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
231
_selector.
SelectionChange
.Select(info, true /* assumeInItemsCollection */);
239
if (!_selector.
SelectionChange
.IsActive || !_updatingSelectedItems)
244
_selector.
SelectionChange
.Unselect(info);