Reminder on secondary tile install on Windows Phone 7.5 applications, and comments on how to exit a Silverlight application
Posted: (EET/GMT+2)
I'm currently working on a Windows Phone application that uses secondary tiles. These tiles can be created programmatically, but one thing I needed to again remind me of was the fact that when you call the ShellTile.Create method, your application exits at the same time.
Even though this happens every time you call the API, this isn't mentioned on the documentation. Having recently also pondered the long-running discussion on the ‘net about how to programmatically exit a Silverlight Windows Phone 7 application, here's a tip: if you need to exit your Silverlight application *and* want to install a secondary tile anyhow, then call ShellTile.Create.
Sidenote: If you were instead writing games with Xna, you would simply call Game.Exit. For more details on the topic of how to exit applications cleanly, read this blog post.