1 implementation of IComponentChangeService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
17
internal sealed partial class DesignerHost : Container, IDesignerLoaderHost2, IDesignerHostTransactionState,
IComponentChangeService
, IReflect
265 references to IComponentChangeService
netstandard (1)
netstandard.cs (1)
249
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
IComponentChangeService
))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
235
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
IComponentChangeService
))]
System.ComponentModel.TypeConverter (28)
System\ComponentModel\Design\ComponentChangedEventArgs.cs (1)
7
/// Provides data for the <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentChanged'/> event.
System\ComponentModel\Design\ComponentChangedEventHandler.cs (1)
7
/// Represents the method that will handle a <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentChanged'/> event.
System\ComponentModel\Design\ComponentChangingEventArgs.cs (1)
7
/// Provides data for the <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentChanging'/> event.
System\ComponentModel\Design\ComponentEventHandler.cs (4)
7
/// Represents the method that will handle the <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentAdding'/> , <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentAdded'/>, <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentRemoving'/>, and
8
/// <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentRemoved'/> event raised
System\ComponentModel\Design\ComponentRenameEventArgs.cs (1)
7
/// Provides data for the <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentRename'/> event.
System\ComponentModel\Design\ComponentRenameEventHandler.cs (1)
7
/// Represents the method that will handle a <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentRename'/> event.
System\ComponentModel\ITypeDescriptorContext.cs (1)
33
/// Raises the <see cref='System.ComponentModel.Design.
IComponentChangeService
.ComponentChanged'/>
System\ComponentModel\ReflectEventDescriptor.cs (6)
163
IComponentChangeService
? changeService = null;
168
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
444
IComponentChangeService
? changeService = null;
449
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
System\ComponentModel\ReflectPropertyDescriptor.cs (12)
579
IComponentChangeService
? changeService = null;
586
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
627
IComponentChangeService
? changeService = null;
633
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
1027
IComponentChangeService
? changeService = null;
1034
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
1091
IComponentChangeService
? changeService = null;
1096
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
System.Windows.Forms (22)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
141
if (site.TryGetService(out
IComponentChangeService
? changeService))
405
if (site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\ActiveX\AxHost.cs (4)
865
IComponentChangeService
? changeService = (
IComponentChangeService
?)GetService(typeof(
IComponentChangeService
));
2985
if (Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
511
if (_host.Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Control.cs (1)
12726
IComponentChangeService
? changeService = null;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6191
if (site?.TryGetService(out
IComponentChangeService
? service) == true)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
258
if (_designerHost.TryGetService(out
IComponentChangeService
? changeService))
280
if (value.TryGetService(out
IComponentChangeService
? changeService))
3150
&& site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
166
protected virtual
IComponentChangeService
? ComponentChangeService => _parent?.ComponentChangeService;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
222
IComponentChangeService
? changeService = ComponentChangeService;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
23
private
IComponentChangeService
? _changeService;
103
protected override
IComponentChangeService
? ComponentChangeService
104
=> _changeService ?? this.GetService<
IComponentChangeService
>();
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
792
if (Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
281
if (site.TryGetService(out
IComponentChangeService
? service))
315
if (site.TryGetService(out
IComponentChangeService
? service))
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
357
if (Host.Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
78
if (_component.Site.TryGetService(out
IComponentChangeService
? changeService))
System.Windows.Forms.Design (211)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
970
IComponentChangeService
? changeService = _editor.Context?.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\CollectionEditor.cs (1)
237
IComponentChangeService
? changeService = null;
System\ComponentModel\Design\ComponentDesigner.cs (6)
390
if (TryGetService(out
IComponentChangeService
? cs))
456
if (TryGetService(out
IComponentChangeService
? cs))
721
/// Notifies the <see cref="
IComponentChangeService
"/> that this component has been changed.
726
=> GetService<
IComponentChangeService
>()?.OnComponentChanged(Component, member, oldValue, newValue);
729
/// Notifies the <see cref="
IComponentChangeService
"/> that this component is
734
=> GetService<
IComponentChangeService
>()?.OnComponentChanging(Component, member);
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (2)
19
private
IComponentChangeService
? ComponentChangeService => _serviceProvider.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\DesignerActionService.cs (2)
39
if (serviceProvider.TryGetService(out
IComponentChangeService
? componentChangeService))
136
if (_serviceProvider.TryGetService(out
IComponentChangeService
? componentChangeService))
System\ComponentModel\Design\DesignerActionUI.cs (2)
88
if (serviceProvider.TryGetService(out
IComponentChangeService
? cs))
123
if (_serviceProvider.TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\DesignerEventService.cs (2)
238
IComponentChangeService
? cs = provider.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\DesignerHost.cs (10)
27
private static readonly Type[] s_defaultServices = [typeof(IDesignerHost), typeof(IContainer), typeof(
IComponentChangeService
), typeof(IDesignerLoaderHost2)];
796
event ComponentEventHandler
IComponentChangeService
.ComponentAdded
802
event ComponentEventHandler
IComponentChangeService
.ComponentAdding
808
event ComponentChangedEventHandler
IComponentChangeService
.ComponentChanged
814
event ComponentChangingEventHandler
IComponentChangeService
.ComponentChanging
820
event ComponentEventHandler
IComponentChangeService
.ComponentRemoved
826
event ComponentEventHandler
IComponentChangeService
.ComponentRemoving
832
event ComponentRenameEventHandler
IComponentChangeService
.ComponentRename
838
void
IComponentChangeService
.OnComponentChanged(object component, MemberDescriptor? member, object? oldValue, object? newValue)
848
void
IComponentChangeService
.OnComponentChanging(object component, MemberDescriptor? member)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
223
if (site.TryGetService(out
IComponentChangeService
? changeService))
System\ComponentModel\Design\InheritanceService.cs (2)
70
IComponentChangeService
? cs = null;
76
cs = site.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\ReferenceService.cs (3)
69
IComponentChangeService
? cs = _provider.GetService<
IComponentChangeService
>();
194
if (_provider.TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\SelectionService.cs (4)
64
if (GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
cs)
283
if (GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
cs)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (3)
251
if (TryGetService(out
IComponentChangeService
? cs))
419
if (!TryGetService(out
IComponentChangeService
? componentChangeService))
671
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
91
if (TryGetService(out
IComponentChangeService
? componentChangeService))
688
if (TryGetService(out
IComponentChangeService
? componentChangeService))
767
if (!TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (1)
52
if (site.TryGetService(out
IComponentChangeService
? changeService)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
863
var
changeService = manager.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\Serialization\ComponentCache.cs (3)
19
if (manager.GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
cs)
105
if (_serManager.TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
148
IComponentChangeService
? componentChangeService = _serviceProvider?.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\UndoEngine.cs (2)
45
ComponentChangeService = GetRequiredService<
IComponentChangeService
>();
205
internal
IComponentChangeService
ComponentChangeService { get; }
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
343
IComponentChangeService
componentChangeSvcSource = (
IComponentChangeService
)_serviceProviderSource.GetService(typeof(
IComponentChangeService
));
344
IComponentChangeService
componentChangeSvcTarget = (
IComponentChangeService
)_serviceProviderTarget.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
71
if (_serviceProvider.TryGetService(out
IComponentChangeService
? cs))
189
if (_serviceProvider.TryGetService(out
IComponentChangeService
? cs))
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (6)
56
IComponentChangeService
cs = _serviceProvider.GetService(typeof(
IComponentChangeService
)) as
IComponentChangeService
;
105
IComponentChangeService
cs = _serviceProvider.GetService(typeof(
IComponentChangeService
)) as
IComponentChangeService
;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
141
IComponentChangeService
changeService = _serviceProvider.GetRequiredService<
IComponentChangeService
>();
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (3)
28
if (TryGetService(out
IComponentChangeService
? componentChangeService))
39
if (TryGetService(out
IComponentChangeService
? componentChangeService))
76
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\Windows\Forms\Design\BindingSourceDesigner.cs (4)
22
if (TryGetService(out
IComponentChangeService
? componentChangeService))
33
if (TryGetService(out
IComponentChangeService
? componentChangeService))
59
IComponentChangeService
? componentChangeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
63
var
changeService = _provider.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\CollectionEditVerbManager.cs (3)
20
private
IComponentChangeService
_componentChangeService;
55
private
IComponentChangeService
ChangeService
59
_componentChangeService ??= this.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (2)
58
IComponentChangeService
? changeService = Context.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\CommandSet.cs (6)
288
if (TryGetService(out
IComponentChangeService
? changeService))
628
if (TryGetService(out
IComponentChangeService
? changeSvc))
1462
IComponentChangeService
? changeService = GetService<
IComponentChangeService
>();
1587
IComponentChangeService
? changeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ComponentTray.cs (10)
115
IComponentChangeService
componentChangeService = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
864
IComponentChangeService
componentChangeService = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
1912
IComponentChangeService
cs = (
IComponentChangeService
)tray.GetService(typeof(
IComponentChangeService
));
2011
if (site.TryGetService(out
IComponentChangeService
cs))
System\Windows\Forms\Design\ControlCommandSet.cs (3)
977
IComponentChangeService
ccs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ControlDesigner.cs (4)
465
if (TryGetService(out
IComponentChangeService
? componentChangeService))
554
if (TryGetService(out
IComponentChangeService
? componentChangeService))
1062
if (TryGetService(out
IComponentChangeService
? componentChangeService))
1072
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
520
if (!_liveDataGridView.Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
31
private
IComponentChangeService
? _compChangeService;
182
IComponentChangeService
? changeService = _liveDataGridView!.Site?.GetService<
IComponentChangeService
>();
443
private void HookComponentChangedEventHandler(
IComponentChangeService
componentChangeService)
1087
IComponentChangeService
? newComponentChangeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
1164
private void UnhookComponentChangedEventHandler(
IComponentChangeService
componentChangeService)
System\Windows\Forms\Design\DataGridViewDesigner.cs (18)
41
IComponentChangeService
? componentChangeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
96
if (dataGridView.Site.TryGetService(out
IComponentChangeService
? ccs))
115
if (component.Site.TryGetService(out
IComponentChangeService
? componentChangeService))
294
IComponentChangeService
? componentChangeService = GetService<
IComponentChangeService
>();
442
IComponentChangeService
? changeService = site?.GetService<
IComponentChangeService
>();
568
IComponentChangeService
? changeService = site?.GetService<
IComponentChangeService
>();
871
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
914
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
957
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
1000
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\DataGridViewDesigner.DataGridViewChooseDataSourceActionList.cs (2)
49
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\DesignerFrame.cs (1)
137
if (_designerSite.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\DocumentDesigner.cs (6)
361
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
676
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\EditorServiceContext.cs (3)
18
private
IComponentChangeService
? _componentChangeService;
73
private
IComponentChangeService
ChangeService => _componentChangeService ??= this.GetRequiredService<
IComponentChangeService
>();
System\Windows\Forms\Design\FormatStringEditor.cs (1)
43
if (provider.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\FormDocumentDesigner.cs (8)
235
IComponentChangeService
changeService = GetService<
IComponentChangeService
>();
299
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
349
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
86
if (TryGetService(out
IComponentChangeService
? componentChangeService))
111
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\Windows\Forms\Design\ListViewDesigner.cs (1)
143
GetService<
IComponentChangeService
>().OnComponentChanged(Component);
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
30
private
IComponentChangeService
_changeService;
1212
_changeService = (
IComponentChangeService
)host.GetService(typeof(
IComponentChangeService
));
2129
var
changeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
509
if (TryGetService(out
IComponentChangeService
? cs))
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
97
if (TryGetService(out
IComponentChangeService
? cs))
113
if (TryGetService(out
IComponentChangeService
? cs))
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
22
private readonly
IComponentChangeService
_changeService;
33
_changeService = (
IComponentChangeService
)_provider.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\StyleEditorForm.cs (2)
21
private readonly
IComponentChangeService
_componentChangeService;
106
_componentChangeService = host.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\TabControlDesigner.cs (6)
144
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
209
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
39
private
IComponentChangeService
_compSvc;
1157
_compSvc = host.GetService(typeof(
IComponentChangeService
)) as
IComponentChangeService
;
System\Windows\Forms\Design\TabOrder.cs (6)
128
IComponentChangeService
? cs = (
IComponentChangeService
?)host.GetService(typeof(
IComponentChangeService
));
166
IComponentChangeService
? cs = (
IComponentChangeService
?)_host.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
77
private
IComponentChangeService
_componentChangeSvc;
154
if (Context.GetService<
IComponentChangeService
>() is
IComponentChangeService
changeService)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
46
private
IComponentChangeService
_componentChangeService;
1398
_componentChangeService = _host.GetService<
IComponentChangeService
>();
1878
if (TryGetService(out
IComponentChangeService
changeService))
System\Windows\Forms\Design\ToolStripInSituService.cs (3)
19
private
IComponentChangeService
_componentChangeService;
35
_componentChangeService = (
IComponentChangeService
)_designerHost.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
676
if (currentDropItem.Site.TryGetService(out
IComponentChangeService
changeService))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (5)
455
if (TryGetService(out
IComponentChangeService
cs))
514
if (TryGetService(out
IComponentChangeService
changeService) && parent.Site is not null)
536
if (TryGetService(out
IComponentChangeService
changeService) && parent.Site is not null)
637
if (TryGetService(out
IComponentChangeService
cs))
760
if (TryGetService(out
IComponentChangeService
changeService))
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (3)
17
private
IComponentChangeService
_componentChangeService;
66
_componentChangeService = (
IComponentChangeService
)_designerHost.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (7)
40
private
IComponentChangeService
_componentChangeService;
353
private
IComponentChangeService
ComponentChangeService => _componentChangeService ??= GetService<
IComponentChangeService
>();
1638
IComponentChangeService
changeService = GetService<
IComponentChangeService
>();
2665
var
changeService = primaryItem.Site.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
21
private
IComponentChangeService
? _componentChangeService;
332
_componentChangeService = _designerHost.GetService<
IComponentChangeService
>();
System.Windows.Forms.Primitives (2)
System\ComponentModel\Design\ComponentChangeServiceExtensions.cs (2)
9
this
IComponentChangeService
changeService,
19
this
IComponentChangeService
changeService,