How can I save the state of my Silverlight application in case user pressed back button (or for example pressed on banner inside application) to set the same settings on application resume.
Is there anything similar to registry in Windows Phone 7, some local storage?
Can I use any database to hold application settings and variable values in it?
There is no in-built database support (unlike in Windows Mobile 6.x) for Windows Phone 7. You have something called IsolatedStorage available within an application. You can use IsolatedStorageSetting.ApplicationSettings to hold your applications’ settings, etc when the application is being Tombstoned. Here is a good article that gives you a nice, brief introduction to IsolatedStorage and how to use it to store application settings. You will need to write code in the OnNavigatedTo and OnNavigatedFrom events to restore/save your application’s settings. James Ashley has some nice blog posts on Tombstoning and the usage of IsolatedStorage, you can start with this article and proceed to read others in his blog.
I maintain a list of Windows Phone 7 developer resources here, you may find some of them useful.
HTH, indyfromoz