Glass achieve blur in WPF

Original: realization of glass blur effect in WPF

Glass achieve blur effect in WPF is relatively simple, mainly as follows:

  1. Add a Rectangle or other controls placed on top of the glass layer
  2. The bottom of the image as a Rectangle filled Brush (most of the time with the VisualBrush)
  3. Adding the Gaussian Blur effect Rectangle
  4. Some progressive brush superimposed on the lighting effect achieved Rectangle

Although it is not difficult to achieve, but to achieve relatively good-looking have to doing something, I am in the site effect Aero: Blurry transparency in WPF on to find a full example, the effect achieved is very good, and also supports drag and drop . In this example I also backed up a network disk: Click to download

In this way simple, the effect is pretty good, but there is a problem: the background of all of the glass is the base map, so as to achieve the effect can not be superimposed on the glass like operating system.

To solve this problem you need to load different layers of each glass, and there is not much introduced.

Guess you like

Origin www.cnblogs.com/lonelyxmas/p/12381386.html