Пример #1
0
        private void _InitializeThemeInfo()
        {
            if (!NativeMethodsShell.IsThemeActive())
            {
                UxThemeName  = "Classic";
                UxThemeColor = "";
                return;
            }

            string name;
            string color;
            string size;

            NativeMethodsShell.GetCurrentThemeName(out name, out color, out size);

            // Consider whether this is the most useful way to expose this...
            UxThemeName  = System.IO.Path.GetFileNameWithoutExtension(name);
            UxThemeColor = color;
        }