-
Notifications
You must be signed in to change notification settings - Fork 186
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
Acrylic Blur WPF Flickers on Resizing #66
Comments
@tricky-mind Editors like VS-Code also have this issue. |
@tricky-mind Also, just a question, how did you get the acrylic to fit the entire window? |
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. |
I Figured out a way to apply the effects directly to window instead of using a HWND Host. Here is the full code:
|
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.
I learned to apply the gaussian blur effect to my visual. 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. |
I'm really sorry. I'm not sure at all how to get the back-drop through direct-x. |
No problem. Thankyou |
Hey @tricky-mind, how did you get the window acrylic effect (not in-app acrylic, which uses |
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: 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 |
if you have any progress please let me know |
@tricky-mind Thanks for sharing your work 😁.
Yes I will! |
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.
i have added a preview of my issue here
Click here to see the preview
Just notice the starting of the gif.
is there any way to fix it.i have noticed similar behavior while creating ACRYLIC_BLUR_BEHIND using setWindowCompositionAttribute() @microsoftopensource
Note: The Window that i use Currently use without the Acrylic blur does not flicker
The text was updated successfully, but these errors were encountered: