[UWP] Serialize app local settings

Jim Young 1 Reputation point
2019-11-12T16:42:02.05+00:00

I want to be able to take the settings for my app and copy them so that they can be shared by different users on different machines. Is there a way to serialize or some how copy the app settings to a different location?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Roy Li - MSFT 31,521 Reputation points Microsoft Vendor
    2019-11-13T02:48:22.017+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Generally speaking, the local settings of UWP apps like fonts, colors, could be saved in LocalSettings. And if the customer wants to share the setting data between different devices, RoamingSettings could help. I'm not sure where you save the setting data in your app. Do you save it in a local file or in some other ways?

    Also, I'm a little confused about why you want to enable sharing setting data between users?
    It might be better to have a server that could save the setting data if you want to share the setting data between different users. You could upload the setting data to the server and download it according to different requirements.

    0 comments No comments

  2. Jim Young 1 Reputation point
    2019-11-13T03:54:55.37+00:00

    My reason for wanting to share settings between individuals is because my app, yMidi Toolbox Plus, allow the user to setup custom MIDI controller setups for controlling musical instruments and music software. Being able to share these configurations between user would be a nice feature.

    My app saves to LocalSettings. Ideally I would like to write the settings to an XML or JSON file, something that could be visually inspected and changed if needed.

    So far it's looking like I will probably need to roll my own solution.