-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Deprecate Switch.System.Windows.Forms.UseLegacyContextMenuStripSourceControlValue quirk
See Switch.System.Windows.Forms.UseLegacyContextMenuStripSourceControlValue compatibility switch not supported for updated documentation for this change.
Deprecate Switch.System.Windows.Forms.UseLegacyContextMenuStripSourceControlValues quirk
Version introduced
3.0 Preview9
Old behavior
Prior to .NET Framework 4.7.2 ContextMenuStrip's SourceControl property returned null for a source control when a user opened a menu from a nested ToolStripMenuItem control. In .NET Framework 4.7.2 the behavior was changed to return a source control.
Switch.System.Windows.Forms.UseLegacyContextMenuStripSourceControlValue was introduced allow to use the legacy behavior.
For more information please refer to https://github.com/dotnet/docs/blob/master/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md.
New behavior
The switch is deprecated, and no alternative functionality is available.
Reason for change
.NET Core 3.0 is a new moderm development platform, and it brings significantly simpler servicing scenarios, thus allowing for removal of quirks targeting specific legacy use cases.
Recommended action
Remove the switch.
Update the code that may have dependent on the legacy behavior.
Category
- Windows Forms
Affected APIs
Not detectable via API analysis
Issue metadata
- Issue type: breaking-change