protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); WindowComposition.Set(this, AccentState.ACCENT_ENABLE_BLURBEHIND, AccentFlags.DrawAllBorders); WindowsTheme.HighContrast.Changed += this.HandleThemeChanged; WindowsTheme.Transparency.Changed += this.HandleThemeChanged; WindowsTheme.ColorPrevalence.Changed += this.HandleThemeChanged; this.HandleThemeChanged(null, false); }
public override void Enable_Fluent_Design_System_Style_Blur(IntPtr hWnd) { WindowComposition.Set(hWnd, AccentState.ACCENT_ENABLE_BLURBEHIND, AccentFlags.DrawAllBorders); }