Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I designed two pages. One page consist of Login module and registration module using pivot control. Using sqlite database inserted values to data base. After login to the form when the user closes the application with out clicking logout on next app launch the same page should be redirected. The page page settings should be preserved and restored. I am trying to use Application data local settings in windows phone 8.1 apps but I cannot save the settings of the page.


C#
Windows.Storage.ApplicationDataContainer data = Windows.Storage.ApplicationData.Current.LocalSettings; 
        public  void logout_Click(object sender, RoutedEventArgs e)
        {
           
            data.Values["check"]=
            this.Frame.Navigate(typeof(MainPage));



I think the above code is wrong. But how to save the settings and use them. Please help me

How to save local settings of login form using Applicationdata class in windows phone 8.1
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900