Difference in creating Application object in WPF and WinForms -


why there difference in way application object created in winforms , wpf?

-> in winforms never created application object. available (i believe singleton pattern). in wpf, although hidden in app.g.cs need instantiate one.

-> in winforms sealed class, in wpf way go inherit it.

is done:

  • to able define application in xaml (app.xaml)
  • due introduction xbap/navigation projects?

what benefits provide?

i don't know design decision entirely motivated desire able define application object in xaml. that's reason enough, seems me.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -