96 references to ShadowProperties
System.Windows.Forms.Design (95)
System\ComponentModel\Design\ComponentDesigner.cs (3)
491string? settingsKeyName = (string?)ShadowProperties[SettingsKeyName]; 513ShadowProperties[SettingsKeyName] = settingsKeyName; 523ShadowProperties[SettingsKeyName] = value;
System\Windows\Forms\Design\ControlDesigner.cs (6)
1089get => (bool)ShadowProperties[nameof(AllowDrop)]!; 1090set => ShadowProperties[nameof(AllowDrop)] = value; 1098get => (bool)ShadowProperties[nameof(Enabled)]!; 1099set => ShadowProperties[nameof(Enabled)] = value; 1104get => (bool)ShadowProperties[nameof(Visible)]!; 1105set => ShadowProperties[nameof(Visible)] = value;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
289: ShadowProperties.ShouldSerializeValue(nameof(Name), null);
System\Windows\Forms\Design\DocumentDesigner.cs (7)
107ShadowProperties[nameof(AutoScaleMode)] = value; 135ShadowProperties[nameof(BackColor)] = value; 153return (Point)ShadowProperties[nameof(Location)]; 157ShadowProperties[nameof(Location)] = value; 1335return !_initializing && ShadowProperties.Contains(nameof(AutoScaleMode)); 1349if (!ShadowProperties.Contains(nameof(BackColor)) || ((Color)ShadowProperties[nameof(BackColor)]).IsEmpty)
System\Windows\Forms\Design\FormDocumentDesigner.cs (16)
32get => ShadowProperties[nameof(AcceptButton)] as IButtonControl; 36ShadowProperties[nameof(AcceptButton)] = value; 46get => ShadowProperties[nameof(CancelButton)] as IButtonControl; 50ShadowProperties[nameof(CancelButton)] = value; 72ShadowProperties[nameof(AutoScaleBaseSize)] = value; 89return !_initializing && ((Form)Component).AutoScale && ShadowProperties.Contains(nameof(AutoScaleBaseSize)); 161get => (double)ShadowProperties[nameof(Opacity)]; 176ShadowProperties[nameof(Opacity)] = value; 249get => (bool)ShadowProperties[nameof(ShowInTaskbar)]; 250set => ShadowProperties[nameof(ShowInTaskbar)] = value; 258get => (FormWindowState)ShadowProperties[nameof(WindowState)]; 259set => ShadowProperties[nameof(WindowState)] = value; 345ShadowProperties[nameof(AcceptButton)] = form.AcceptButton; 346ShadowProperties[nameof(CancelButton)] = form.CancelButton; 382if (ce.Component == ShadowProperties[nameof(AcceptButton)]) 387if (ce.Component == ShadowProperties[nameof(CancelButton)])
System\Windows\Forms\Design\ListBoxDesigner.cs (3)
20get => (bool)ShadowProperties[nameof(IntegralHeight)]!; 23ShadowProperties[nameof(IntegralHeight)] = value; 58listBox.IntegralHeight = (bool)ShadowProperties[nameof(IntegralHeight)]!;
System\Windows\Forms\Design\ListViewDesigner.cs (2)
47return (bool)ShadowProperties[nameof(OwnerDraw)]; 51ShadowProperties[nameof(OwnerDraw)] = value;
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (8)
43get => (bool)ShadowProperties[nameof(TopToolStripPanelVisible)]!; // This is first set in the Initialize method 46ShadowProperties[nameof(TopToolStripPanelVisible)] = value; 57get => (bool)ShadowProperties[nameof(LeftToolStripPanelVisible)]!; // This is first set in the Initialize method 60ShadowProperties[nameof(LeftToolStripPanelVisible)] = value; 71get => (bool)ShadowProperties[nameof(RightToolStripPanelVisible)]!; // This is first set in the Initialize method 74ShadowProperties[nameof(RightToolStripPanelVisible)] = value; 85get => (bool)ShadowProperties[nameof(BottomToolStripPanelVisible)]!; // This is first set in the Initialize method 88ShadowProperties[nameof(BottomToolStripPanelVisible)] = value;
System\Windows\Forms\Design\ToolStripDesigner.cs (6)
110get => (bool)ShadowProperties[nameof(AllowDrop)]; 118ShadowProperties[nameof(AllowDrop)] = value; 127get => (bool)ShadowProperties[nameof(AllowItemReorder)]; 135ShadowProperties[nameof(AllowItemReorder)] = value; 2409private bool ShouldSerializeAllowDrop() => (bool)ShadowProperties[nameof(AllowDrop)]; 2414private bool ShouldSerializeAllowItemReorder() => (bool)ShadowProperties[nameof(AllowItemReorder)];
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (15)
37get => (bool)ShadowProperties[nameof(AutoClose)]; 38set => ShadowProperties[nameof(AutoClose)] = value; 43get => (bool)ShadowProperties[nameof(AllowDrop)]; 44set => ShadowProperties[nameof(AllowDrop)] = value; 162if (string.IsNullOrEmpty((string)ShadowProperties[SettingsKeyName])) 171ShadowProperties[SettingsKeyName] = $"{rootComponent.Site.Name}.{Component.Site.Name}"; 175ShadowProperties[SettingsKeyName] = Component.Site.Name; 179persistableComponent.SettingsKey = ShadowProperties[SettingsKeyName] as string; 184return ShadowProperties[SettingsKeyName] as string; 188ShadowProperties[SettingsKeyName] = value; 585ShadowProperties[nameof(AutoClose)] = true; 593_dropDown.AutoClose = (bool)ShadowProperties[nameof(AutoClose)]; 601ShadowProperties[nameof(AllowDrop)] = false; 609_dropDown.AutoClose = (bool)ShadowProperties[nameof(AllowDrop)]; 718private bool ShouldSerializeAutoClose() => (!(bool)ShadowProperties[nameof(AutoClose)]);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (17)
40get => (bool)ShadowProperties[nameof(AutoSize)]; 43bool autoSize = (bool)ShadowProperties[nameof(AutoSize)]; 46ShadowProperties[nameof(AutoSize)] = value; 58return (string)ShadowProperties[nameof(AccessibleName)]; 62ShadowProperties[nameof(AccessibleName)] = value; 169get => (ToolStripItemOverflow)ShadowProperties[nameof(Overflow)]; 192ShadowProperties[nameof(Overflow)] = value; 231get => (bool)ShadowProperties[nameof(Visible)]; 234ShadowProperties[nameof(Visible)] = value; 1078private void ResetAutoSize() => ShadowProperties[nameof(AutoSize)] = false; 1083private void RestoreAutoSize() => ToolStripItem.AutoSize = (bool)ShadowProperties[nameof(AutoSize)]; 1093private void RestoreOverflow() => ToolStripItem.Overflow = (ToolStripItemOverflow)ShadowProperties[nameof(Overflow)]; 1103private void ResetAccessibleName() => ShadowProperties[nameof(AccessibleName)] = null; 1108private void RestoreAccessibleName() => ToolStripItem.AccessibleName = (string)ShadowProperties[nameof(AccessibleName)]; 1191private bool ShouldSerializeAutoSize() => (ShadowProperties.Contains(nameof(AutoSize))); 1196private bool ShouldSerializeAccessibleName() => (ShadowProperties[nameof(AccessibleName)] is not null); 1201private bool ShouldSerializeOverflow() => (ShadowProperties[nameof(Overflow)] is not null);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (6)
107get => (bool)ShadowProperties[nameof(CheckOnClick)]; 108set => ShadowProperties[nameof(CheckOnClick)] = value; 113get => (bool)ShadowProperties[nameof(DoubleClickEnabled)]; 114set => ShadowProperties[nameof(DoubleClickEnabled)] = value; 2468private bool ShouldSerializeDoubleClickEnabled() => (bool)ShadowProperties[nameof(DoubleClickEnabled)]; 2473private bool ShouldSerializeCheckOnClick() => (bool)ShadowProperties[nameof(CheckOnClick)];
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (5)
100get => (Padding)ShadowProperties[nameof(Padding)]!; 103ShadowProperties[nameof(Padding)] = value; 133get => (bool)ShadowProperties[nameof(Visible)]!; 136ShadowProperties[nameof(Visible)] = value; 587Padding padding = (Padding)ShadowProperties[nameof(Padding)]!;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ComponentDesignerTests.cs (1)
2936public new object ShadowProperties => base.ShadowProperties;