public static EnableBlur ( this window ) : void | ||
window | this | |
return | void |
public static void EnableBlur(this Form window)
{
if (SystemInformation.HighContrast)
{
return; // Blur is not useful in high contrast mode
}
SetAccentPolicy(window, Interop.AccentState.ACCENT_ENABLE_BLURBEHIND);
}