Home > Software design >  Is it possible to have an transparent acrylic blur effect in WPF on part of the window?
Is it possible to have an transparent acrylic blur effect in WPF on part of the window?

Time:01-28

I would like to have a transparent window that can be clicked through, and then to be able to blur off parts of it so that the content behind from other apps and the desktop are selectively blurred. In the end I want to have a clear rectangle in the middle and blur around the outside like this:

enter image description here

The parts that are blurred do not have to let clicks pass through, but the center still should.

There are a few similar questions to this but they do not cover the current situation for the following reasons:

Most of the solutions don't appear to work with dotnet core 5 Most of the solutions either transparently blur the whole window (i.e. the desktop behind the window), or the parts of the application the blurred control overlaps, or the control itself. None of them blur the desktop content behind without affecting the whole window.

Yes I could probably make this shape with 4 chromeless windows but I am hoping I don't have to do that.

CodePudding user response:

So as far as I can tell the answer is: No

I managed to get something sort of like this working using the code from enter image description here

To sum up, wpf in .net core does not appear support blurring of the background in anything but the most primitive way.

  •  Tags:  
  • Related