App settings sample

This sample demonstrates how to use the application settings API and settings flyouts to integrate an app's settings UI with the Settings charm.

3.5 Star
85,498 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • VB code needs updating - missing id link
    1 Posts | Last post December 01, 2016
    • The sample needs to be updated to include a 36 digit id identifier that you can find while debugging! Took me half a day to figure this out.
                  Dim helpCommand As New SettingsCommand("030DCE3D-7F31-45EA-93B3-255EDF20B8BB", "Privacy Statement", Sub(handler) LaunchWebPage(New System.Uri("")))
              Catch ex As Exception
                  Debug.WriteLine(ex.ToString & "  error in settings pane ui sub")
              End Try
  • C# version does not load.
    1 Posts | Last post September 14, 2014
    • The C# version does not load. It says: One or more projects in the solution were not loaded correctly. See the output window for details.
      In there it says
      C:\Users\user\AppData\Local\Temp\Temp2_App settings\C#\ApplicationSettings.csproj : error  : The project file could not be loaded. Could not find file 'C:\Users\user\AppData\Local\Temp\Temp2_App settings\C#\ApplicationSettings.csproj'.  C:\Users\user\AppData\Local\Temp\Temp2_App settings\C#\ApplicationSettings.csproj
  • How to Internationalize the scenario 2?
    1 Posts | Last post April 11, 2013
    • I am trying to internationalize the Help SettingFlyout of the scenario 2, But I am having problems to discover where I have to put the command WinJS.Resources.processAll(); and what else need to be configured. I already put it into the onloaded and into the scenario2AddSettingsFlyout method, but the resource is not loaded in the Help, but works fine in the file 2-AddFlyoutToCharm.html. I am trying to change the line <div class="win-label">Help</div> for <div class="win-label"><span data-win-res="{textContent: 'greeting'}"></span></div> in the file 2-SettingsFlyout-Help.html, and I have a resource file with the string "greeting" : "Hello World!". Any clue about what is happening?
      Thank you for the attention,
      Anderson Neves
  • Re-opening settings crash the app
    1 Posts | Last post April 05, 2013
    • Go to the AddSettingsScenario class and add the following lines in the onSettingsCommand method:
      await CurrentApp.RequestProductPurchaseAsync("FeatureName", false);
      Reopening the Settings flyout crashes at some point...this thing is preventing my app from certifying
  • C# Textbox can't be reached if device uses virtual keyboard
    1 Posts | Last post January 29, 2013
    • When you open last scenario, you can see the textbox in the lower part of the settings panel. 
      But if you use only virtual keyboard, It covers this textbox. 
      How to make it visible during typing?
  • C++ code compiles with error
    3 Posts | Last post November 08, 2012
    • If I build the sample C++ code Visual Studio Express 2012 RC stops with 
      error C2039: 'WindowCreatedEventArgs' : is not a member of 'Windows::UI::Xaml'
    • getting same error
    • For me too
  • Xaml Example does not show setting panes
    5 Posts | Last post September 14, 2012
    • The Xaml example shows setting command links when the settings charm is invoked but it does not show any settings panes when the command links are clicked.
      Please show an example of how to associate a setting pane defined in Xaml.
    • Currently the SettingsFlyout controller seems only to be available from WinJS:
      For a quick workaround, there's a 3rd party solution available in XAML:
    • Consider this solution (discussion, library, and source):
    •  It still not show any settings panes when the command links are clicked?
      Can provide some sample for it?
    • The C# sample now includes a XAML example of how to create a settings flyout and attach it to the settings charm.