BlurBehind - it's a simple library for WPF(not UWP) apps that needs to use blur behind the app window.
If you want to enable BlurBehind you should use something like:
BlurWindow.EnableWindowBlur(window);
Where window
is your window object(e.g. this inside your codebehind window class).
If you want to turn off BlurBehind you should use something like:
BlurWindow.DisableWindowBlur(window);
window
means the same thing.
As the title said, it can be used only in
- Windows Vista
- Windows 7
- Windows 10
Other Windows versions doesn't support effect like this. If you try to enable blur with Windows 8 or 8.1, you'll get an Exception(NotSupportedExeption).
You'll need check
if (BlurWindow.CanBeEnabled)
BlurWindow.EnableWindowBlur(window);
or just handle this exception to avoid crashing your app.
Licensed under the GPLv3 license.
Copyright ©️ 2017 Mokeev Andrey
mokeev1995.ru · GitHub @mokeev1995 · Twitter @mokeev1995 · VK @mokeev1995