-
Notifications
You must be signed in to change notification settings - Fork 113
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
Windows 10 1903 Window Drag Issue #42
Comments
Experiencing the same issue on my 1903 build, could not yet figure out a solution. |
I've only just discovered FluentWPF but have hit this issue right away on 1903 with a super simple new app. |
Hi, @DHitchenUK |
@sourcechord, I just wanted to say thanks for the work you put in, it's very much appreciated. |
If you turn off transparency effects in the settings, it works like before. Of course this turns off blur for all windows apps however. |
Hi, @DHitchenUK FluentWPF uses undocumented Win32API(SetWindowCompositionAttribute method). The reported behavior is caused by the change in the behavior of that API. Dragging problem occurs Windows10's emoji toolbar, too. Please upvote it 🙏 |
I'm still getting this issue even after updating to FluentWPF 0.7.0. EDIT: Actually, this is strange. The issue doesn't occur on my work computer, but does still occur on my home computer. I'll try it again on my home computer to see if I did something wrong. |
This bug seems to be fixed in version 1903 (18362.267) |
18362.295, still here |
Is this supposed to be open? 637ea17 did not fix it for me (Windows 1903, OS build 18995.1) |
In 1909, or a new cumulative update, the problems are again present. |
Hi, @Armin2208 Thanks for the information. |
I've tried it and it works. Nice, thank you! |
I'm glad to hear that. |
This fixes awaescher#87. Additional references: sourcechord/FluentWPF#42 sourcechord/FluentWPF#49
This fixes #87. Additional references: sourcechord/FluentWPF#42 sourcechord/FluentWPF#49
I know that this issue has been closed already, but is there a way to keep the real acrylic blur and not have these issues? For example, I've seen DevExpress avoid this issue by temporarily disabling the transparency when moving the window, showing the Fallback colour. |
@sourcechord , I actually know how to recreate the acrylic effect of uwp using interop(not the setWindowComposition() method but using the direct x) But have the same issue. But only on resizing and not on dragging This is totally different from your code. |
It is also worth mentioning that dragging the window on the desktop does not lag at all. |
Hi @NotARobot6969 This is the intended behavior.
ACCENT_ENABLE_ACRYLICBLURBEHIND effect causes laggy behavior during window is moving or resizing. So that, FluentWPF applies ACCENT_ENABLE_ACRYLICBLURBEHIND effect only when the window is stabled, and applies ACCENT_ENABLE_BLURBEHIND effect during window is moving or resizing. |
@sourcechord But then there is no blur for most of the time, at least for me. |
To clarify: For me, the laggy effect is applying when I move the window, and no effect is being applied when it's stationary. |
According to the uploaded movie, the background of the window doesn't seems to have enough texture. It is difficult to recognize the blur effect. |
To be clear, it's lagging when it is being dragged. @sourcechord |
Please tell me your environment. |
Indeed! I forgot to mention it. |
@sourcechord I forgot to tell you this too; the less windows behind the acrylic program, the less lag there is. Desktop with no windows behind (smooth): Many windows behind (laggy): |
Latest build of Windows 11 22000.100, acrylic has stopped working. 😭 |
I'm checking the window behavior with FluentWPF in Windows11 environment. But, currently there is no way to apply aclylic effect with SetWindowCompositionAttribute API. It's a tough situation; however I'll continue to survey to provide 'Fluent Design' in windows11 environment. |
@sourcechord i am working on a workaround using direct composition, a sample win32 demo is available here : Acrylic Effect using DWM and Direct Composition. I am trying to build a wpf version, its a bit hard. |
@Extrimis I also tried to use similar approach but with XAML islands instead. |
Create Separate window and attach both windows together with SetWindowPos(), instead of Resizing Both Windows, Resize the Windows.UI.Composition.Visual so there wont be any flickering on resize. The acrylic window should be WS_EX_TRANSPARENT,WS_EX_LAYERED |
I am looking forward to mica than acrylic. |
Hi, @Extrimis
I think so too. I'd like to introduce mica materials in FluentWPF, but haven't found a way to achieve it. BTW FluentWPF currently has some problems in Windows11 that need to be fixed. So that, I created another GitHub issue(#130) to track it. |
My laptop won't support windows 11 otherwise I would have checked it. |
Have you tried windows.ui.composition interop method for acrylic, that one won't lag but it has airspace issues that must be solved, it's the real acrylic |
No, I heven't tried yet. Because it seems that Composition API doesn't support interop with WPF window. |
you don't need a compositionHostControl to do that,you can directly render those things into wpf window,but the only issue is the airspace issue,and the only way i see to solve the issue is by overlapping windows |
Check out the microsoft repo : WPF AcrylicEffect Sample |
OIC 😃 It is difficult to implement, and causes the increase of complexity. |
Ok
…On Wed, 11 Aug, 2021, 5:20 pm minami_SC, ***@***.***> wrote:
OIC 😃
I tried WPF AcrylicEffect Sample
<https://github.com/microsoft/Windows.UI.Composition-Win32-Samples/tree/master/dotnet/WPF/AcrylicEffect>,
and recognized that can draw to window directly. But it has airspace issue
as you said.
If we use Windows.UI.Composition, we have to create separete window for
avoiding airspace issue.
It is difficult to implement, and causes the increase of complexity.
So that, I'll release FluentWPF 0.10.0 with SetWindowCompositionAttribute
way, however continue to investigate real acrylic effect.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARKGWVKN4N4QEAVK3Y4EQBDT4JPXTANCNFSM4HHJS5PA>
.
|
has anyone else observed the behavior that in visual studio 2022 the drag is fine in debug mode? in my application which makes use of SetWindowCompositionAttribute() I've observed the following strange behavior: |
Hi, I just upgraded to Windows 10 1903 and noticed that using the titlebar to drag a window has a very high latency, lagging behind the cursor movements by seconds.
I'm using the AcrylicWindow with ExtendViewIntoTitleBar="True"
Thanks for any updates.
The text was updated successfully, but these errors were encountered: