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
StatusStrip button next to SizingGrip is now missing #13717
I was able to verify that this is a new bug that was introduced between .NET 10 Preview 5 and Preview 6
I have a build of my app from July 7th which is using .NET 10 Preview 5 and it does not exhibit this bug. If I do a git checkout to the commit that lines up with that build, but build it today using .NET 10 Preview 6, the zoom button is now missing.
it's funny, because just the other day I thought the same, namely the sizing grip, which I am rendering a bit different to address higher scaling settings and the rounding corners, was the culprit.
Meanwhile I am thinking, it's a red herring, and this may not even be a regression.
I assume, you designed this or last saved it in > 125% scaling?
Could you set the Display settings to 125%, log off and in again, Open the tool window in the Designer, dirty the Form/UserControl, save it, and try it again?
Could you then reset the Scaling to whatever had it before, and - without changing anything in that Form, run it again?
I just tested with .NET 8, and had similar results, albeit with totally different thresholds.
The Size Grip has a bit to do with it, but not the revamped rendering of it.
If I disable the rendering if the Grip, in some HighDPI modes it's then rendering correctly, but it is not really predictable.
A dummy item following the last one is the best chance for an ad-hoc work around, I suppose.
What's funny though:
The moment you select one of the items in the Designer, the toolbar is rendering everything correctly. Can you repro that one?
I am working on the niche-dark-mode-issues today; if this is a quick fix, maybe I can include this.
I am more convinced now that Dark Mode here is a red herring. It might be a trigger in that some things I render slightly differently than before. I think it's rather a fallout of the Layout engine changes we made some time ago.
The moment you select one of the items in the Designer, the toolbar is rendering everything correctly. Can you repro that one?
I haven't used the designer since about 2005 or 2006 :) None of my UI will load correctly in the designer. Side note, I hope that the rewritten WinForms Designer can remain an optional toggle once it's promoted past "experimental," as it is a giant PITA to double-click on a code file and have it try to boot up the designer and then close the tab and slowly right click -> open width -> code editor. Major productivity loss for me since this would be happening many times per hour. I'll have to file an issue at some point.
I am more convinced now that Dark Mode here is a red herring.
PDN is using its own dark mode implementation, I'm not yet using any of the new WinForms Dark Theme stuff. So I agree that it is probably a red herring.
Side note, I hope that the rewritten WinForms Designer can remain an optional toggle once it's promoted past "experimental," as it is a giant PITA to double-click on a code file and have it try to boot up the designer and then close the tab and slowly right click -> open width -> code editor. Major productivity loss for me since this would be happening many times per hour. I'll have to file an issue at some point.
@Shyam-Gupta do you think this is something we can enable once we are ready to remove the Preview checkbox? If so, let's get an issue in the designer repo and get it done with the removal of "preview checkbox".
@KlausLoeffelmann suggested an existing option in VS that we can use to open the designer in code view by default. It is available in Solution Explorer -> Select Form1.cs -> Right click -> Open With...
In the dialog you can set C# Editor to be the default. After that every time you double click on any Form.cs, it will open in code editor instead of designer. Would that address your requirement?
So, the workaround I use right now in my own Apps is defining a bit of a larger right Margin for the last Item to display.
The problem is the scaled margin in a scaled HighDpi scenario, by which, I assume, we're not reducing the internal used TableLayout client size (and never have), which then in turn means the last item hit the SizeGrip and gets kicked out.
Poor thing.
I am not sure, how courageous I am to "fix" this, because I might break workarounds.
(@merriemcgaw, could we quirk this?)
I also don't know, why we're not PropertyBrowser-exposing Padding for the StatusStrip, btw, because that would come in handy for such cases now.
I just finished the open DarkMode issues for RC1, and also took Dark Mode and the remaining Async APIs out of experimental mode.
Let me catch my breath a bit, and then I'll think about this a bit more.
I think I can argue this could make the bar for an RC2 fix, because this clearly goes into A11Y territory.
If your time allows, would you mind running PDN against the nightly RC2 build and see, if you're good with it? 🥺
PDN is using its own dark mode implementation, I'm not yet using any of the new WinForms Dark Theme stuff. So I agree that it is probably a red herring.
Ping me directly at firstname.lastname at Microsoft.com, if you like, to sync what improvements you'd need?
Activity
rickbrew commentedon Jul 18, 2025
I was able to verify that this is a new bug that was introduced between .NET 10 Preview 5 and Preview 6
I have a build of my app from July 7th which is using .NET 10 Preview 5 and it does not exhibit this bug. If I do a git checkout to the commit that lines up with that build, but build it today using .NET 10 Preview 6, the zoom button is now missing.
KlausLoeffelmann commentedon Jul 19, 2025
Hey Nick,
it's funny, because just the other day I thought the same, namely the sizing grip, which I am rendering a bit different to address higher scaling settings and the rounding corners, was the culprit.
Meanwhile I am thinking, it's a red herring, and this may not even be a regression.
I assume, you designed this or last saved it in > 125% scaling?
Could you set the Display settings to 125%, log off and in again, Open the tool window in the Designer, dirty the Form/UserControl, save it, and try it again?
Could you then reset the Scaling to whatever had it before, and - without changing anything in that Form, run it again?
Do you see anything unexpected?
rickbrew commentedon Jul 20, 2025
DPI scaling does change things -- I run at 150%. If I change it to 125%, it's still hidden.
At 100% though it becomes visible:
KlausLoeffelmann commentedon Jul 21, 2025
I just tested with .NET 8, and had similar results, albeit with totally different thresholds.
The Size Grip has a bit to do with it, but not the revamped rendering of it.
If I disable the rendering if the Grip, in some HighDPI modes it's then rendering correctly, but it is not really predictable.
A dummy item following the last one is the best chance for an ad-hoc work around, I suppose.
What's funny though:
The moment you select one of the items in the Designer, the toolbar is rendering everything correctly. Can you repro that one?
I am working on the niche-dark-mode-issues today; if this is a quick fix, maybe I can include this.
I am more convinced now that Dark Mode here is a red herring. It might be a trigger in that some things I render slightly differently than before. I think it's rather a fallout of the Layout engine changes we made some time ago.
@merriemcgaw FYI.
rickbrew commentedon Jul 22, 2025
I haven't used the designer since about 2005 or 2006 :) None of my UI will load correctly in the designer. Side note, I hope that the rewritten WinForms Designer can remain an optional toggle once it's promoted past "experimental," as it is a giant PITA to double-click on a code file and have it try to boot up the designer and then close the tab and slowly right click -> open width -> code editor. Major productivity loss for me since this would be happening many times per hour. I'll have to file an issue at some point.
PDN is using its own dark mode implementation, I'm not yet using any of the new WinForms Dark Theme stuff. So I agree that it is probably a red herring.
merriemcgaw commentedon Jul 23, 2025
@Shyam-Gupta do you think this is something we can enable once we are ready to remove the Preview checkbox? If so, let's get an issue in the designer repo and get it done with the removal of "preview checkbox".
Shyam-Gupta commentedon Jul 23, 2025
Yes, this is very much feasible. I will create an issue for it in the designer repo.
rickbrew commentedon Aug 8, 2025
@KlausLoeffelmann do you need anything more from me for this bug?
Shyam-Gupta commentedon Aug 12, 2025
Hi @rickbrew
@KlausLoeffelmann suggested an existing option in VS that we can use to open the designer in code view by default. It is available in Solution Explorer -> Select Form1.cs -> Right click -> Open With...
In the dialog you can set
C# Editorto be the default. After that every time you double click on any Form.cs, it will open in code editor instead of designer. Would that address your requirement?rickbrew commentedon Aug 12, 2025
Yeah that seems perfect 👍
rickbrew commentedon Aug 13, 2025
btw if I remove the status grip (
SizingGrip = false), the zoom in button does correctly appear. So at least I sort of have a workaround for now.KlausLoeffelmann commentedon Aug 17, 2025
So, the workaround I use right now in my own Apps is defining a bit of a larger right Margin for the last Item to display.
The problem is the scaled margin in a scaled HighDpi scenario, by which, I assume, we're not reducing the internal used TableLayout client size (and never have), which then in turn means the last item hit the SizeGrip and gets kicked out.
Poor thing.
I am not sure, how courageous I am to "fix" this, because I might break workarounds.
(@merriemcgaw, could we quirk this?)
I also don't know, why we're not PropertyBrowser-exposing
Paddingfor the StatusStrip, btw, because that would come in handy for such cases now.I just finished the open DarkMode issues for RC1, and also took Dark Mode and the remaining Async APIs out of experimental mode.
Let me catch my breath a bit, and then I'll think about this a bit more.
I think I can argue this could make the bar for an RC2 fix, because this clearly goes into A11Y territory.
KlausLoeffelmann commentedon Aug 17, 2025
Oh, and @rickbrew:
If your time allows, would you mind running PDN against the nightly RC2 build and see, if you're good with it? 🥺
Ping me directly at firstname.lastname at Microsoft.com, if you like, to sync what improvements you'd need?
rickbrew commentedon Aug 18, 2025
No luck
I can give you access to a mirror of the PDN repo, it's already set up and approved for MSFT employees
rickbrew commentedon Nov 9, 2025
Any news on this? Still seeing it in 10-rc2