locked
Added one SettingFlyout ; does not show in my app settings

    Question

  • Hi,
    I am trying to add one settings option in my Windows Store App. I have added new item in my project call SettingsFlyout (name as CustomSetting) and then add the following code inside my app.xaml.cs file.

        protected override void OnWindowResize(..)
        {
        SettingsPane.GetForCurrentView().CommandsRequested +=       OnCommandsRequested;
        }

        private void OnCommandsRequested(SettingsPane sender,    SettingsPaneCommandsRequestedEventArgs args)
        {
        args.Request.ApplicationCommands.Add(new SettingsCommand(
                    "Custom Setting", "Custom Setting", (handler) =>     ShowCustomSettingFlyout()));
        }
        public void ShowCustomSettingFlyout()
        {
         CustomSetting CustomSettingFlyout = new CustomSetting();
         CustomSettingFlyout.Show();
        }

    After doing this, I did't get  "Custom Setting" option in my app settings. Do I miss anything to show "Custom Setting" option in my app settings?
    Thursday, February 05, 2015 1:01 AM

Answers

  • Hi Sansmile,

    Here is a quickstart about how to add app settings. Try and follow code snippet on it. Access this quickstart.

    Regards,


    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. Click HERE to participate the survey.

    Monday, February 16, 2015 8:47 AM
    Moderator

All replies