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
I have recreated the example Acrylic Effect in WPF and made it to fit the entire window. But when i resize the window it flickers a lot and also a kind on lagging in resizing.
is there any way to fix it.i have noticed similar behavior while creating ACRYLIC_BLUR_BEHIND using setWindowCompositionAttribute() Microsoft Open Source (@microsoftopensource)
Note: The Window that i use Currently use without the Acrylic blur does not flicker
tricky-mind
It seems this issue is not specific to acrlic effect. I have Winforms app with custom title bar and I resize via WM_NCLBUTTONDOWN. It also has this exact flickering issue.
tricky-mind
It seems this issue is not specific to acrlic effect. I have Winforms app with custom title bar and I resize via WM_NCLBUTTONDOWN. It also has this exact flickering issue.
Editors like VS-Code also have this issue.
The Flickering problem in my window is not caused by the form, it is caused by the acrylic layer. My Custom Chrome Window doesn't flicker at all (i fixed the Window Flickering issue).
Just have a look at my Custom Control Library: UWPHost
tricky-mind
It seems this issue is not specific to acrlic effect. I have Winforms app with custom title bar and I resize via WM_NCLBUTTONDOWN. It also has this exact flickering issue.
Editors like VS-Code also have this issue.
The Flickering problem in my window is not caused by the form, it is caused by the acrylic layer. My Custom Chrome Window doesn't flicker at all (i fixed the Window Flickering issue).
Just have a look at my Custom Control Library: UWPHost
it wont flicker.
Hmm. Your right. But could you verify if it's only flickering from left-right and not right-left? Because your issue seems very similar to some resizing issues that VS-Code and my custom form have.
Also, thanks for posting the code for your full window blur!
tricky-mind
It seems this issue is not specific to acrlic effect. I have Winforms app with custom title bar and I resize via WM_NCLBUTTONDOWN. It also has this exact flickering issue.
Editors like VS-Code also have this issue.
The Flickering problem in my window is not caused by the form, it is caused by the acrylic layer. My Custom Chrome Window doesn't flicker at all (i fixed the Window Flickering issue). Just have a look at my Custom Control Library: UWPHost
it wont flicker.
Hmm. Your right. But could you verify if it's only flickering from left-right and not right-left? Because your issue seems very similar to some resizing issues that VS-Code and my custom form have.
Also, thanks for posting the code for your full window blur!
I am pretty sure it won't flicker from any side because I used a patch with the microsoft.windows.shell DLL to avoid flickering on resizing.
Is there any way to get the backdrop brush of window through direct composition.
Since this acrylic effect lags I'm trying to implement the acrylic effect through direct composition using
IDCompositionDevice3
I learned to apply the gaussian blur effect to my visual.
But how will I apply the effect to my windows backdrop.
tricky-mind
It seems this issue is not specific to acrlic effect. I have Winforms app with custom title bar and I resize via WM_NCLBUTTONDOWN. It also has this exact flickering issue.
Editors like VS-Code also have this issue.
The Flickering problem in my window is not caused by the form, it is caused by the acrylic layer. My Custom Chrome Window doesn't flicker at all (i fixed the Window Flickering issue). Just have a look at my Custom Control Library: UWPHost
it wont flicker.
Hmm. Your right. But could you verify if it's only flickering from left-right and not right-left? Because your issue seems very similar to some resizing issues that VS-Code and my custom form have.
Also, thanks for posting the code for your full window blur!
I am pretty sure it won't flicker from any side because I used a patch with the microsoft.windows.shell DLL to avoid flickering on resizing.
Is there any way to get the backdrop brush of window through direct composition.
Since this acrylic effect lags I'm trying to implement the acrylic effect through direct composition using
IDCompositionDevice3
I learned to apply the gaussian blur effect to my visual.
But how will I apply the effect to my windows backdrop.
To create the back drop brush. Is there any way that i could get this back drop visual through direct x , direct composition.
I'm really sorry. I'm not sure at all how to get the back-drop through direct-x.
This is really not my area of expertise, I just came from Winforms looking for a way to use window-blur.
Hey tricky-mind, how did you get the window acrylic effect (not in-app acrylic, which uses Compositor.CreateBackdropBrush()) only using Compositor.CreateBackdropBrush() it didn't work for me. I also tried Compositor.CreateHostBackdropBrush() but it paints the area black. Can you upload the source code to GitHub please?
Hello ShankarBUS, I have discontinued the project because i was not able to get my window backdrop brush. Any way i will share you all my resources with you. If you have any progress on it please let me know.
Note:
In this code the noise effect might be more blurred because i tried to resize the noise layer to window width. and there may be some piece of unwanted code also. In current versions of windows if you drag or resize the window it produces lag and flickering. In the above zip i have made the window allowTransparency="true" so the window is not resizable or draggable.
Since the Acrylic effect lags,i was trying to achieve the same blur effect through DirectX but i was unable to get the backdrop for window. How ever i find a way to blur the window components through GaussianBlur by using DirectX. you may have a look at that too. (note : this one is written in C++)
Activity
VS-ux commentedon Aug 13, 2020
tricky-mind
It seems this issue is not specific to acrlic effect. I have Winforms app with custom title bar and I resize via WM_NCLBUTTONDOWN. It also has this exact flickering issue.
Editors like VS-Code also have this issue.
VS-ux commentedon Aug 13, 2020
tricky-mind Also, just a question, how did you get the acrylic to fit the entire window?
tricky-mind commentedon Aug 13, 2020
The Flickering problem in my window is not caused by the form, it is caused by the acrylic layer. My Custom Chrome Window doesn't flicker at all (i fixed the Window Flickering issue).
Just have a look at my Custom Control Library: UWPHost
it wont flicker.
tricky-mind commentedon Aug 13, 2020
I Figured out a way to apply the effects directly to window instead of using a HWND Host.
Here is the full code:
VS-ux commentedon Aug 13, 2020
tricky-mind
Hmm. Your right. But could you verify if it's only flickering from left-right and not right-left? Because your issue seems very similar to some resizing issues that VS-Code and my custom form have.
Also, thanks for posting the code for your full window blur!
tricky-mind commentedon Aug 13, 2020
I am pretty sure it won't flicker from any side because I used a patch with the microsoft.windows.shell DLL to avoid flickering on resizing.
Is there any way to get the backdrop brush of window through direct composition.
Since this acrylic effect lags I'm trying to implement the acrylic effect through direct composition using
I learned to apply the gaussian blur effect to my visual.
But how will I apply the effect to my windows backdrop.
In this sample they uses a method this code:
To create the back drop brush. Is there any way that i could get this back drop visual through direct x , direct composition.
VS-ux commentedon Aug 13, 2020
tricky-mind
I'm really sorry. I'm not sure at all how to get the back-drop through direct-x.
This is really not my area of expertise, I just came from Winforms looking for a way to use window-blur.
tricky-mind commentedon Aug 13, 2020
No problem. Thankyou
ShankarBUS commentedon Sep 24, 2020
Hey tricky-mind, how did you get the window acrylic effect (not in-app acrylic, which uses
Compositor.CreateBackdropBrush()) only usingCompositor.CreateBackdropBrush()it didn't work for me. I also triedCompositor.CreateHostBackdropBrush()but it paints the area black. Can you upload the source code to GitHub please?tricky-mind commentedon Sep 24, 2020
Hello ShankarBUS, I have discontinued the project because i was not able to get my window backdrop brush. Any way i will share you all my resources with you. If you have any progress on it please let me know.
I am attaching a zip file of code
WPF Acrylic blur effect using Win2D
Note:
In this code the noise effect might be more blurred because i tried to resize the noise layer to window width. and there may be some piece of unwanted code also. In current versions of windows if you drag or resize the window it produces lag and flickering. In the above zip i have made the window
allowTransparency="true"so the window is not resizable or draggable.Since the Acrylic effect lags,i was trying to achieve the same blur effect through DirectX but i was unable to get the backdrop for window. How ever i find a way to blur the window components through GaussianBlur by using DirectX. you may have a look at that too. (note : this one is written in C++)
the code is in the file named DirectComNoCom1.zip
tricky-mind commentedon Sep 24, 2020
if you have any progress please let me know
ShankarBUS commentedon Sep 24, 2020
tricky-mind Thanks for sharing your work 😁.
Yes I will!