I am writting minesweeper game in c# silverlight.
1. How can I add a counter (counting seconds only) to this application?
2. How can I stop counter when application goes to the background (middle button, search button, incoming call etc.)?
3. How can I do something when WP7 is closing my application process? For example save current game to isolated storage.
I am writting minesweeper game in c# silverlight. 1. How can I add a
Share
1) You need to use Timer
2) You need to handle OnNavigatedFrom Event:
3) Here You have a 4 useful events:
Here You can read more about handle this events: http://msdn.microsoft.com/en-us/library/hh821027.aspx