2

According to MSDN, the FrameworkElement events Loaded and Unloaded can be triggered by user-initiated system theme changes. I've experimented with changing various theme, color and sound settings on Windows 7 without seeing either of those WPF events raised.

How do I make a user-initiated system theme change--which triggers the raising of Unloaded and Loaded--happen? (I'm interested for application testing purposes.)

Thanks,
Ben

Ben Gribaudo
  • 5,057
  • 1
  • 40
  • 75

1 Answers1

1

With application up and running, go to Control Panel -> Personalization.

Scroll down to 'Basic and High Contrast Themes'. Switch between Windows 7 Basic and Windows Classic.

This will generate a 'theme changed' event to your application.