2 implementations of OnComponentChanging
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
858void IComponentChangeService.OnComponentChanging(object component, MemberDescriptor? member)
System.Windows.Forms.Tests (1)
System\Windows\Forms\PropertyGridTests.cs (1)
4294public void OnComponentChanging(object component, MemberDescriptor member)
110 references to OnComponentChanging
System.ComponentModel.TypeConverter (8)
System\ComponentModel\ReflectEventDescriptor.cs (4)
175changeService.OnComponentChanging(component, this); 185changeService.OnComponentChanging(component, this); 456changeService.OnComponentChanging(component, this); 466changeService.OnComponentChanging(component, this);
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
595changeService.OnComponentChanging(component, notifyDesc); 642changeService.OnComponentChanging(component!, notifyDesc); 1044changeService.OnComponentChanging(component, this); 1105changeService.OnComponentChanging(component, this);
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
512changeService.OnComponentChanging(_host, prop);
System\Windows\Forms\Control.cs (2)
12638changeService.OnComponentChanging(this, sizeProperty); 12648changeService.OnComponentChanging(this, locationProperty);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6132service.OnComponentChanging(this, null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1958ComponentChangeService?.OnComponentChanging(owner, PropertyDescriptor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (3)
243changeService.OnComponentChanging(component, propertyInfo); 250changeService.OnComponentChanging(owner, entry.PropertyDescriptor); 372ComponentChangeService.OnComponentChanging(_objects[i], _mergedDescriptor[i]);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
387ComponentChangeService?.OnComponentChanging(owner, entry.PropertyDescriptor); 587ComponentChangeService?.OnComponentChanging(owner, PropertyDescriptor);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
82changeService.OnComponentChanging(_component, null);
System.Windows.Forms.Design (79)
System\ComponentModel\Design\ComponentDesigner.cs (1)
734=> GetService<IComponentChangeService>()?.OnComponentChanging(Component, member);
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (1)
33ComponentChangeService?.OnComponentChanging(Instance, PropertyDescriptor);
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
227changeService.OnComponentChanging(component!, this); 228changeService.OnComponentChanging(component!, Event);
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
176componentChangeService?.OnComponentChanging(oldParent, controlsProp); 182componentChangeService?.OnComponentChanging(newParent, controlsProp);
System\ComponentModel\Design\UndoEngine.cs (1)
480ComponentChangeService.OnComponentChanging(comp, prop);
System\ComponentModel\Design\UndoEngine.UndoUnit.RenameUndoEvent.cs (1)
32engine.ComponentChangeService.OnComponentChanging(comp, null);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
431componentChangeSvcTarget.OnComponentChanging(dragTarget, targetProp); 435componentChangeSvcSource.OnComponentChanging(dragSource, sourceProp); 465componentChangeSvcTarget.OnComponentChanging(primaryComponent, propLoc);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
135cs.OnComponentChanging(_table, _changedProp);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
168changeService.OnComponentChanging(oldParent, controlsProp); 172changeService.OnComponentChanging(newParent, controlsProp);
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (2)
79componentChangeService.OnComponentChanging(component: navigator, member: memberDescriptor); 88componentChangeService.OnComponentChanging(component: navigator, member: propertyDescriptor);
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
67componentChangeService?.OnComponentChanging(bindingSource, propertyDescriptor);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
69changeService.OnComponentChanging(oldParent, controlsProp); 76changeService.OnComponentChanging(newParent, controlsProp);
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
98ChangeService.OnComponentChanging(_designer.Component, _targetProperty);
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
63changeService.OnComponentChanging(Context.Instance, property);
System\Windows\Forms\Design\CommandSet.cs (4)
295changeService.OnComponentChanging(obj, null); 638changeSvc.OnComponentChanging(comp, null); 1540changeService.OnComponentChanging(comp, null); 1751changeService.OnComponentChanging(comp, null);
System\Windows\Forms\Design\ControlCommandSet.cs (1)
1054ccs.OnComponentChanging(parent, controlsProp);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
541changeService.OnComponentChanging(_liveDataGridView, prop);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
202changeService?.OnComponentChanging(_liveDataGridView, prop); 258changeService?.OnComponentChanging(_liveDataGridView, prop);
System\Windows\Forms\Design\DataGridViewDesigner.cs (10)
47componentChangeService?.OnComponentChanging(dataGridView.Columns[i], prop); 312componentChangeService?.OnComponentChanging(dataGridView, propertyDescriptor); 456changeService?.OnComponentChanging(dataGridView, columnsProp); 582changeService?.OnComponentChanging(dataGridView, columnsProp); 681changeService?.OnComponentChanging(dataGridView, columnsProp); 848changeService?.OnComponentChanging(_owner.Component, dataSourceProp); 938changeService?.OnComponentChanging(dataGridView, prop); 981changeService?.OnComponentChanging(dataGridView, prop); 1024changeService?.OnComponentChanging(dataGridView, prop); 1067changeService?.OnComponentChanging(dataGridView, prop);
System\Windows\Forms\Design\EditorServiceContext.cs (1)
87ChangeService.OnComponentChanging(_designer.Component, _targetProperty);
System\Windows\Forms\Design\FormatStringEditor.cs (5)
47changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["Format"]); 48changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["NullValue"]); 49changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["FormatProvider"]); 53changeService.OnComponentChanging(component, TypeDescriptor.GetProperties(component)["FormatString"]); 54changeService.OnComponentChanging(component, TypeDescriptor.GetProperties(component)["FormatInfo"]);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
237changeService?.OnComponentChanging(Component, props["ClientSize"]);
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
557_changeService?.OnComponentChanging(Control, controlsProp); 1331_changeService.OnComponentChanging(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 1361_changeService.OnComponentChanging(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 2148changeService?.OnComponentChanging(newParent, controlsProp); 2173changeService?.OnComponentChanging(oldParent, controlsProp); 2410_changeService?.OnComponentChanging(cParent, controlsProp); 2418_changeService.OnComponentChanging(parent, controlsProp);
System\Windows\Forms\Design\SelectionUIHandler.cs (3)
547cs.OnComponentChanging(c, TypeDescriptor.GetProperties(c)["Location"]); 555cs.OnComponentChanging(c, sizeProp); 560cs.OnComponentChanging(GetComponent(), null);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
202_changeService.OnComponentChanging(rootItem, member); 215_changeService.OnComponentChanging(tool, topMember); 360_changeService.OnComponentChanging(tool, topMember);
System\Windows\Forms\Design\StyleEditorForm.cs (2)
514_componentChangeService.OnComponentChanging(_tableLayoutPanel, _rowStyleProp); 519_componentChangeService.OnComponentChanging(_tableLayoutPanel, _colStyleProp);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
1437_compSvc.OnComponentChanging(Component, controlsProp); 1905_compSvc.OnComponentChanging(comp, null); 2133_compSvc.OnComponentChanging(Table, prop);
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
1515ComponentChangeService.OnComponentChanging(parentPanel, controlsProp); 1523ComponentChangeService.OnComponentChanging(ToolStrip, locationProp); 1858changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 1928changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (4)
684changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 688changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 779changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 784changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (4)
534changeService.OnComponentChanging(parent, TypeDescriptor.GetProperties(parent)["DropDownItems"]); 785changeService.OnComponentChanging(parent, TypeDescriptor.GetProperties(parent)["Items"]); 789changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 849changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
1684changeService.OnComponentChanging(MenuItem.DropDown, member); 2717changeService?.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2781changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]);
System.Windows.Forms.Design.Tests (11)
System\ComponentModel\Design\ComponentDesignerTests.cs (2)
2553.Setup(s => s.OnComponentChanging(component, member)) 2562mockComponentChangeService.Verify(s => s.OnComponentChanging(component, member), Times.Once());
System\ComponentModel\Design\DesignerHostTests.cs (6)
2947changeService.OnComponentChanging(component, member); 2951changeService.OnComponentChanging(component, member); 2956changeService.OnComponentChanging(component, member); 2978changeService.OnComponentChanging(component, member); 2982changeService.OnComponentChanging(component, member); 2987changeService.OnComponentChanging(component, member);
System\Windows\Forms\Design\FormatStringEditorTests.cs (3)
66cs => cs.OnComponentChanging(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["Format"]), 70cs => cs.OnComponentChanging(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["NullValue"]), 74cs => cs.OnComponentChanging(_cellStyle, TypeDescriptor.GetProperties(_cellStyle)["FormatProvider"]),
System.Windows.Forms.Primitives (1)
System\ComponentModel\Design\ComponentChangeServiceExtensions.cs (1)
23changeService.OnComponentChanging(component, member);