Detecting when a Windows 8 Store app is deactivated isn't as easy as you would expect. In the Windows Phone project templates, you will find the Application_Launching(), Application_Activated(), Application_Deactivated() and Application_Closing() methods in the App.xaml.cs. But those methods don't exist in the Windows Store project templates. There is an OnSuspending() method, but you can't use it to detect deactivation. You use it to store your data when suspending the app. This will probably be fired a few seconds later than deactivation.

Read More...


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

Intermediate,VS2010,Articles,Computer Tutorials, XAML, Window 8, Window Applications