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