Skip to content

CommandSet.OnMenuPaste - dragClient is always false #14400

@chirndlerks

Description

@chirndlerks

.NET version

10.0.201

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, 8.0.415

Issue description

We have migrated from .NET 8 to .NET 10.
I noticed that copying and pasting controls in the Forms Designer no longer works.
The problem seems to be that the dragClient boolean always remains false.

From what I can tell, it's a bug from 5978f22

Either you set the boolean correctly

or change the if (dragClient) to if (designer != null)

Steps to reproduce

A local build with ‘dragClient = true;’ on line 1925 fixes the bug.
I don't think an explicit example is necessary.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions