Exemplo n.º 1
0
        private void _InitializeGlassColor()
        {
            bool isOpaque;
            uint color;

            NativeMethodsShell.DwmGetColorizationColor(out color, out isOpaque);
            color |= isOpaque ? 0xFF000000 : 0;

            WindowGlassColor = Utility.ColorFromArgbDword(color);

            var glassBrush = new SolidColorBrush(WindowGlassColor);

            glassBrush.Freeze();

            WindowGlassBrush = glassBrush;
        }