c# using local folder to store data in windows form code example
Example: uwp roaming data sample
ApplicationDataContainer roamingSettings = ApplicationData.Current.RoamingSettings;
roamingSettings.Values["lastViewed"] = DateTime.Now;
var lastViewed = (DateTime)roamingSettings.Values["lastViewed"];