Best Way to keep Settings for a WinRT App?

后端 未结 2 1388
长发绾君心
长发绾君心 2021-02-06 09:58

I\'m working on a WinRT app that\'s actually also a game. I need to keep different information such as audio settings or player statistics somewhere in sort of a file or somehow

2条回答
  •  旧巷少年郎
    2021-02-06 10:42

    The MSDN has an article on using app settings in Windows Store apps.

    The Windows.UI.ApplicationSettings namespace contains all the classes you need.

    Provides classes that allow developers to define the app settings that appear in the settings pane of the Windows shell. The settings pane provides a consistent place for users to access app settings.

    Basically these classes let you store application settings and hook them into the standard place for all application settings. Your users don't have to learn anything new, the settings will be in the expected place.

提交回复
热议问题