You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Baseline SnapLines do not appear in DesignSurface #13305
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.
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.
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.
@jholcmanchyron we appreciate the minimum repro you provided, that should be helpful! I am curious as to your specific use case for the design surface. Are you creating a custom designer? Does this run in VS or standalone? This is something we could likely address in .NET 10, but to service back to 9 we'd need to know more about the customer impact.
@merriemcgaw We have a custom designer embedded in our application that allows our users to build custom panels containing a set of supported Winforms controls. They use the DesignSurface to drag these controls around, resize them and align them to their liking. Once they have that, they can "bind" those controls to certain functionality of the application (Button Clicks to execute some action, TextBox Text to appear somewhere, etc.). The final panel is then rendered in another part of the application to actually run the use case the user needs. I hope that clarifies it a bit, let me know if I can provide more to speed things up.
@Tanya-Solyanik I do not have any workarounds. If this could make it into net9, it would be nice. If there are any workarounds you or your team are aware of, please let me know.
Verified in the latest .NET 10.0 SDK build: 10.0.100-preview.5.25223.16, it was fixed: Baseline snapshot lines are displayed in the design surface now.
Verified the issue with .NET SDK 9.0.5 + private build from release/9.0 branch of dotnet/winforms repro. it was fixed. The test result is same as above.
Activity
merriemcgaw commentedon Apr 14, 2025
@jholcmanchyron we appreciate the minimum repro you provided, that should be helpful! I am curious as to your specific use case for the design surface. Are you creating a custom designer? Does this run in VS or standalone? This is something we could likely address in .NET 10, but to service back to 9 we'd need to know more about the customer impact.
jholcmanchyron commentedon Apr 15, 2025
@merriemcgaw We have a custom designer embedded in our application that allows our users to build custom panels containing a set of supported Winforms controls. They use the DesignSurface to drag these controls around, resize them and align them to their liking. Once they have that, they can "bind" those controls to certain functionality of the application (Button Clicks to execute some action, TextBox Text to appear somewhere, etc.). The final panel is then rendered in another part of the application to actually run the use case the user needs. I hope that clarifies it a bit, let me know if I can provide more to speed things up.
merriemcgaw commentedon Apr 15, 2025
@LeafShi1 can you help us find where this regressed from 8 to 9 (and what is happening in 10)?
2 remaining items
Tanya-Solyanik commentedon Apr 18, 2025
@jholcmanchyron - we are fixing this issue in NET10. Do you require this fix in NET9, or do you have a workaround?
fix dotnet#13305 Baseline SnapLines do not appear in DesignSurface (d…
jholcmanchyron commentedon Apr 22, 2025
@Tanya-Solyanik I do not have any workarounds. If this could make it into net9, it would be nice. If there are any workarounds you or your team are aware of, please let me know.
Tanya-Solyanik commentedon Apr 22, 2025
@Epica3055 - could you please backport the fix and uniot test to release/9.0 as 2 separate commits and send this change to testing?
fix #13305 Baseline SnapLines do not appear in DesignSurface
MelonWang1 commentedon Apr 24, 2025
Verified in the latest .NET 10.0 SDK build: 10.0.100-preview.5.25223.16, it was fixed: Baseline snapshot lines are displayed in the design surface now.
13305.mp4
Syareel-Sukeri commentedon May 7, 2025
Verified this issue in the .NET 10 Preview 4 test pass build, it was fixed. The test result is same as above
[release/9.0] fix #13305 Baseline SnapLines do not appear in DesignSu…
Zheng-Li01 commentedon May 15, 2025
Verified the issue with .NET SDK 9.0.5 + private build from release/9.0 branch of dotnet/winforms repro. it was fixed. The test result is same as above.
MelonWang1 commentedon May 22, 2025
Verified this issue in the .NET 9.0.6 test pass build, it was fixed, same result as above.