Recommended way of doing user settings with WindowsAppSDK 1.0? #1478
-
ApplicationSettingsBase isn't found in System.Configuration, so what is the new way of doing app and user settings with WinUI 3? Thanks! Edit: I did find the NuGet package for using the old way. This still begs the question of is there a new way, or we just install the NuGet package and be on our merry way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hey @fourdragons, thanks for asking! ApplicationSettingsBase is for WinForms apps. For WinUI 3 packaged (MSIX) apps, app and user settings should be stored using the ApplicationData class. Here's instructions on how to save and load user settings: https://docs.microsoft.com/windows/uwp/get-started/settings-learning-track Note that those docs do say "UWP", however, those docs are applicable to any packaged (MSIX) app, like WinUI 3 packaged. |
Beta Was this translation helpful? Give feedback.
Hey @fourdragons, thanks for asking!
ApplicationSettingsBase is for WinForms apps. For WinUI 3 packaged (MSIX) apps, app and user settings should be stored using the ApplicationData class. Here's instructions on how to save and load user settings: https://docs.microsoft.com/windows/uwp/get-started/settings-learning-track
Note that those docs do say "UWP", however, those docs are applicable to any packaged (MSIX) app, like WinUI 3 packaged.