Beispiel #1
0
        static void OnThemeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            ThemeRoot root = obj as ThemeRoot;

            if (root != null)
            {
                var handler = root.ThemeChanged;

                if (handler != null)
                {
                    handler(root, EventArgs.Empty);
                }
            }
        }
Beispiel #2
0
 static Theme()
 {
     Instance = new ThemeRoot();
 }
 static Theme()
 {
     Instance = new ThemeRoot();
 }