Пример #1
0
 private static void OnUserPreferenceChanged(object sender, UserPreferenceChangedEventArgs e)
 {
     DisplayInformation.SetScheme();
 }
Пример #2
0
 static DisplayInformation()
 {
     SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(DisplayInformation.OnUserPreferenceChanged);
     DisplayInformation.SetScheme();
 }