silverlight - IApplicationService in WPF -


i'm new wpf , i'm migrating project silverlight wpf 4.0 , problem can't find equivalence iapplicationservice , iapplicationlifetimeaware.

the library , namespace system.windows loaded, yet have error message; "the type or namespace name 'iapplicationlifetimeaware' not found'.

any idea missing please.

thanks

finally found there's no direct migration , need recoded. if implementing iapplicationservice , iapplicationlifetimeaware access statservice(), can make method public, without argument..

public void startservice() { . . } 

and call method during instanciation in app.xaml.cs

 public app()         {             this.startup += this.application_startup;             this.exit += this.application_exit;              initializecomponent();              offlinedatabaseservice x = new offlinedatabaseservice();             x.startservice();         } 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -