Skip to content
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

(WPF) : WindowStyle.None leaves border and small titlebar #2125

Closed
rafntor opened this issue Jan 26, 2022 · 3 comments
Closed

(WPF) : WindowStyle.None leaves border and small titlebar #2125

rafntor opened this issue Jan 26, 2022 · 3 comments
Labels

Comments

@rafntor
Copy link
Contributor

rafntor commented Jan 26, 2022

Expected Behavior - Gtk looks fine :

image

Actual Behavior

image

Code that Demonstrates the Problem

https://github.com/rafntor/EtoDemoApp/blob/windowstyle/EtoDemoApp/EtoDemoApp/MainForm.cs

Not sure if this is a bug but would be preferable if 'None' was really without borders on all platforms

@cwensley
Copy link
Member

Thanks for submitting the issue. Yes, WPF has a border even when you tell it not to. I didn't think WinForms had this issue however, maybe it's new.

If you set myForm.Resizable = false then the border goes away.

@cwensley cwensley added the bug label Jan 26, 2022
@cwensley cwensley added this to the 2.x milestone Jan 26, 2022
@rafntor
Copy link
Contributor Author

rafntor commented Jan 26, 2022

Thanks!
Confirming it is OK when resizable=false (should I close it or do you want to improve it to work even without this fix?)
Also confirming I was wrong to include Winforms, double-checked and no such issue there, my bad.

@rafntor rafntor changed the title (WPF & Winforms) : WindowStyle.None leaves border and small titlebar (WPF) : WindowStyle.None leaves border and small titlebar Jan 26, 2022
@cwensley
Copy link
Member

I do want to improve this, and actually there was another issue tracking this now that I remember. I'll close this one as dupe of #1928

@cwensley cwensley removed this from the 2.x milestone Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants