示例#1
0
        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);
        }
示例#2
0
 public override void Enable_Fluent_Design_System_Style_Blur(IntPtr hWnd)
 {
     WindowComposition.Set(hWnd, AccentState.ACCENT_ENABLE_BLURBEHIND, AccentFlags.DrawAllBorders);
 }