-
Notifications
You must be signed in to change notification settings - Fork 996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freeze of designer when changing the control size when control happens to have a readonly array of structs property #12660
Comments
@Olina-Zhang can your team please have a look? I think there is some guidance on implementing custom controls and serialization that might help here. |
@CortiWins Thank you for your feedback on the issue, but unfortunately we did not reproduce the issue based on the steps you provided. Below are the steps we took to reproduce the issue, can you check them? 12660.mp4 |
@MelonWang1 can you place the user control on a form and try resizing it? Maybe its that? |
@elachlan Yes, you are right. This issue cannot repro in .NET Framework project. Repro in VS16.11.42. Repro step:
12660.mp4 |
@MelonWang1 - could you please copy this issue to the designer repo if we don't already have one like this. |
Filed it in our internal designer repo: https://github.com/microsoft/winforms-designer/issues/6226 to track, closing this one. |
Environment
Microsoft Visual Studio Professional 2022
Version 17.12.3
VisualStudio.17.Release/17.12.3+35527.113
Microsoft .NET Framework
Version 4.8.09037
Installed Version: Professional
C# Tools 4.12.0-3.24572.7+dfa7fc6bdea31a858a402168384192b633c811fa
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
.NET version
Net 8.0 Windows
Did this work in a previous version of Visual Studio and/or previous .NET release?
Did not check.
Issue description
I made a user control with a public readonly property of type array of structs.
When i try to change the controls size, visual studio and the out of process designer freeze while both staying at roughly 5% CPU use according to task manager.
[Browsable(false)] does not prevent it.
I reproduced the issue in a minimal project.
No immediate help required because i can just not do that. Have a good day everyone.
Steps to reproduce
Diagnostics
The text was updated successfully, but these errors were encountered: