locked
Run Settings

    Question

  • How to run an application program's Settings from the code to c#?


    • Edited by Liliya Muray Saturday, February 07, 2015 7:13 AM
    Saturday, February 07, 2015 7:12 AM

Answers

  • Hi,

    Do you mean open the App Settings in Charm by code? If so, you cannot do that. In windows store app, there is no API can handle this. The Settings should open by user Click the Settings button in Charm.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    • Marked as answer by Liliya Muray Wednesday, February 11, 2015 5:44 AM
    Sunday, February 08, 2015 4:46 AM

All replies

  • Hi,

    Do you mean open the App Settings in Charm by code? If so, you cannot do that. In windows store app, there is no API can handle this. The Settings should open by user Click the Settings button in Charm.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    • Marked as answer by Liliya Muray Wednesday, February 11, 2015 5:44 AM
    Sunday, February 08, 2015 4:46 AM
  • Hi,
    In the Maps there are for Windows 10 there is a button "Open location settings". The Settings button opens the bookmark location.
    Best Wishes!



    Sunday, February 08, 2015 6:58 AM
  • Hi,

    You can add setting command to settings charm and SettingsFlyout to handle the issue.  Please see the link:

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh872190.aspx

    And see App settings sample.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Monday, February 09, 2015 9:21 AM
  • Hi,

    It does not suit me. I know it is. I expect approximately the following answer:
    Start Settings is:

    private async void Button_Click_1(object sender, RoutedEventArgs e)
    {
     Uri uri = new Uri("settings://location");//"ms-settings-location:"
     LauncherOptions options = new LauncherOptions
     {
       DesiredRemainingView = ViewSizePreference.Default
     };
     await Launcher.LaunchUriAsync(uri, options);
    }
    The only way to properly specify a string of call for WinRT. As for phone "ms-settings-location:".

    Best Wishes!

    Monday, February 09, 2015 9:41 AM
  • Hi,

    That's only available for windows phone. In windows store app, you cannot do that.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Monday, February 09, 2015 9:57 AM
  • Hi,

    I saw this is possible in BingMaps in Windows 10. So in my application it must be so. The Windows 10 soon, and in my application there is no such function.

    Best Wishes!
    Monday, February 09, 2015 10:04 AM
  • Hi,

    In windows store app, there is a Uri scheme which can use to launch the Bing Maps app:

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn614996.aspx

     string uriToLaunch = @"bingmaps:?cp=40.726966~-74.006076&lvl=10";
                var uri = new Uri(uriToLaunch);
    
                // Launch the URI
                var success = await Windows.System.Launcher.LaunchUriAsync(uri);
                if (success)
                {
                    // URI launched
                }
                else
                {
                    // URI launch failed
                }
    But for any other app or setting, there is no uri scheme. And you cannot directly launch a  app. You can use the Launcher class to launch a file or protocol, but you cannot choose which app will handle that file or protocol.

    See the  Association launching sample for an example,

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Tuesday, February 10, 2015 9:42 AM
  • Hi,

    Did you read my question? I know how to run "Maps", "News" and other applications. But I don't know how to start "Settings".

    Best Wishes!

    Tuesday, February 10, 2015 10:02 AM
  • Hi,

    Sorry for misunderstanding your last reply. In my above replies, I already indicate you cannot do that in windows 8.1 store app. That's setting uri scheme can only support in windows phone development. Now, Windows 10 is a preview version, there is no official article say the uri scheme can used in windows 10. I think you can look for help in the windows 10 preview forum:

    https://social.technet.microsoft.com/Forums/en-US/home?category=WinPreview2014

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Wednesday, February 11, 2015 1:32 AM