We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Window with transparent background has doubled buttons
Create window with transparent background and see effect
Not doubled buttons
HandyControls (Custom version) 3.4.0
Visual Studio 2022-preview
.Net 6.0
Insider Build (xxxxx)
No response
The text was updated successfully, but these errors were encountered:
+same doubled buttons
Sorry, something went wrong.
Okay, so i've made a research, and this should fix this problem
private const int GWL_STYLE = -16; private const int WS_SYSMENU = 0x80000; [DllImport("user32.dll", SetLastError = true)] private static extern int GetWindowLong(IntPtr hWnd, int nIndex); [DllImport("user32.dll")] private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); public static void FixBackground(Window window) { var hwnd = new WindowInteropHelper(window).Handle; SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) & ~WS_SYSMENU); }
5bb2890
No branches or pull requests
Describe the bug
Window with transparent background has doubled buttons
Steps to reproduce the bug
Create window with transparent background and see effect
Expected behavior
Not doubled buttons
Screenshots
NuGet package version
HandyControls (Custom version) 3.4.0
IDE
Visual Studio 2022-preview
Framework type
.Net 6.0
Windows version
Insider Build (xxxxx)
Additional context
No response
The text was updated successfully, but these errors were encountered: