You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
Trying to store local data permanently in Xamarin Forms WPF, but as soon as we stop the program and then restart, all the settings are gone. This works correctly in UWP and Android
Steps to Reproduce
Create a new WPF project.
Add the following code to the MainWindow class:
object Test = null;
bool found = Application.Current.Properties.TryGetValue("Test",out Test);
Application.Current.Properties["Test"]= "TestValue";
Application.Current.SavePropertiesAsync();
found = Application.Current.Properties.TryGetValue("Test", out Test);
Start the program (the value should be stored permanently)
End the program, restart and check the value Application.Current.Properties.Count in debug mode. It is 0, but should be 1.
Expected Behavior
The value "TestValue" should be stored permanently in WPF.
Actual Behavior
On every restart of the program, the valus is gone.
Basic Information
Version with issue: VS2017 Ver. 15.7.6
Last known good version:
IDE:
Platform Target Frameworks: WPF
Affected Devices: We have got the issue on two different Win 10 devices.
Description
Trying to store local data permanently in Xamarin Forms WPF, but as soon as we stop the program and then restart, all the settings are gone. This works correctly in UWP and Android
Steps to Reproduce
Create a new WPF project.
Add the following code to the MainWindow class:
Start the program (the value should be stored permanently)
End the program, restart and check the value Application.Current.Properties.Count in debug mode. It is 0, but should be 1.
Expected Behavior
The value "TestValue" should be stored permanently in WPF.
Actual Behavior
On every restart of the program, the valus is gone.
Basic Information