23 references to Context
System.Windows.Forms.Design (22)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
748
_propertyGrid.Site = new PropertyGridSite(
Context
, _propertyGrid);
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (3)
98
if (
Context
is not null)
100
canChange =
Context
.OnComponentChanging();
116
Context
!.OnComponentChanged();
System\Windows\Forms\Design\StyleEditorForm.cs (1)
96
_tableLayoutPanel =
Context
.Instance as TableLayoutPanel;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (14)
131
if (
Context
is not null)
136
ToolStrip realToolStrip = ToolStripFromObject(
Context
.Instance);
139
if (
Context
.Instance is ToolStripItem itemInstance && itemInstance.Site is not null)
141
Text = $"{_originalText} ({itemInstance.Site.Name}.{
Context
.PropertyDescriptor.Name})";
154
if (
Context
.GetService<IComponentChangeService>() is IComponentChangeService changeService)
159
_selectedItemProps.Site = new PropertyGridSite(
Context
, _selectedItemProps);
396
ToolStrip ownerToolStrip =
Context
is { Instance: not null } contextInstance
443
if (
Context
.Instance is not Component component)
1106
_owner.
Context
?.OnComponentChanging();
1130
_owner.
Context
?.OnComponentChanged();
1180
_owner.
Context
?.OnComponentChanging();
1185
_owner.
Context
?.OnComponentChanged();
1215
_owner.
Context
?.OnComponentChanging();
1220
_owner.
Context
?.OnComponentChanged();
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
104
if (
Context
is not null &&
Context
.Instance is TreeView view)
411
_propertyGrid1.Site = new PropertyGridSite(
Context
, _propertyGrid1);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\CollectionFormTests.cs (1)
856
public new ITypeDescriptorContext Context => base.
Context
;