-
Notifications
You must be signed in to change notification settings - Fork 110
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
WindowStyle None + Enable Transparency true= Exception #131
Comments
Thanks for the feedback. |
yeah,I think AllowsTransparency="True" is very necessary when I hide current window |
@sourcechord I was trying to make rounded corners window… then allow transparency is needed. |
I see 😃 |
@sourcechord yes I am aware of that issue with rounded corners.. Another note/use case, not sure if it is feasible, opacity dose not work with acrylic, so it is not possible to apply storyboard animation that manipulates it unfortunately… |
After upgrading to stable, started getting the exception that above two properties should be on together, although they are indeed both on:
System.InvalidOperationException: 'WindowStyle.None is the only valid value for WindowStyle when AllowsTransparency is true.'
This happens in AcrylicWindow.cs at line:
else if (msg == WM_SIZE && wParam == (IntPtr)SizeEvents.SIZE_RESTORED) { var win = (Window)HwndSource.FromHwnd(hwnd).RootVisual; if (win != null && _internalStateTable.TryGetValue(win, out var internalState)) { win.ClearValue(WindowStyleProperty);
Reverting back only this file to alpha version, removes the exception again.
This happens with .Net core 3.1, Win10.
The text was updated successfully, but these errors were encountered: