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)
98if (Context is not null) 100canChange = Context.OnComponentChanging(); 116Context!.OnComponentChanged();
System\Windows\Forms\Design\StyleEditorForm.cs (1)
96_tableLayoutPanel = Context.Instance as TableLayoutPanel;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (14)
131if (Context is not null) 136ToolStrip realToolStrip = ToolStripFromObject(Context.Instance); 139if (Context.Instance is ToolStripItem itemInstance && itemInstance.Site is not null) 141Text = $"{_originalText} ({itemInstance.Site.Name}.{Context.PropertyDescriptor.Name})"; 154if (Context.GetService<IComponentChangeService>() is IComponentChangeService changeService) 159_selectedItemProps.Site = new PropertyGridSite(Context, _selectedItemProps); 396ToolStrip ownerToolStrip = Context is { Instance: not null } contextInstance 443if (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)
104if (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)
856public new ITypeDescriptorContext Context => base.Context;