tags:

views:

13

answers:

0

This is the only way I know how to get Settings.Default.SettingsLoaded() to fire during startup:

Settings.Default.SettingsLoaded += (s, args) =>
{
    //set it again (because I'm weird like that):
    ApplicationTitle = Settings.Default.MyAppTitle;

    //Run code that depends on settings being loaded on time...

    //...
}
//force SettingsLoaded event to fire:
ApplicationTitle = Settings.Default.MyAppTitle;

Is there a more "elegant" way to get this event to fire during startup? BTW: I've already tried Settings.Default.Reload() and Settings.Default.Reset()---these are not firing for me in System.Windows.Application.Startup.