It is still relatively simple to implement glass blur in WPF, mainly in the following ways:
- Add a rectangle or other control as a glass to the top layer
- Fill the bottom image as a brush (most of the time with VisualBrush) into the rectangle
- Add a Gaussian blur effect to the rectangle
- Overlay some progressive brushes on the rectangle for lighting effects
The entire implementation is still a bit of work, I found a more complete example on the website Aero effect:blurry Transparency in WPF, the effect is very good, and also support drag and drop. This example I also backed up in the network disk: Click to download
This approach is simple and the effect is good, but there is a problem: all the glass background is a basemap, so it is not possible to achieve the effect of glass superposition as the operating system.
To solve this problem requires each glass to load a different layer, and here is not more introduction.
Glass blur effect in WPF