Skip to content

Baseline SnapLines do not appear in DesignSurface #13305

Closed
@jholcmanchyron

Description

@jholcmanchyron

.NET version

9.0.4

Did it work in .NET Framework?

Yes

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

8.0.15

Issue description

After updating the runtime version from net8 to net9, the Baseline snap line (the purple one in the attached gif) stops appearing in the designer surface of a winforms app.

This is true for all controls I tried - Label, Button, CheckBox, DateTimePicker. I assume it is a general issue, not an issue with a specific control(s).

The other snap lines (Top, Bottom,...) are still working.

net8:
Image

net9:
Image

Steps to reproduce

Snaplinetest.zip

  1. Using the attached solution.
  2. Run SnaplinetestNet8
    a. The console output contains Baseline snap lines for both labels.
    b. The Baseline snap line (purple) appears when dragging one of the labels next to the other.
  3. Run SnaplinetestNet9
    a. The console output still contains Baseline snap lines for both labels, as it should...
    b. ... but the snap line does not appear when dragging the label.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions