Ejemplo n.º 1
0
        private void AboutBtn_Click(object sender, RoutedEventArgs e)
        {
            Button b = sender as Button;

            if (b != null)
            {
                SettingsFlyoutAbout sfa = new SettingsFlyoutAbout();
                sfa.ShowIndependent();
            }
        }
Ejemplo n.º 2
0
        private void OnCommandsRequested(SettingsPane settingsPane, SettingsPaneCommandsRequestedEventArgs e)
        {
            var    loader = new Windows.ApplicationModel.Resources.ResourceLoader();
            string aboutSettingCommandTitle         = loader.GetString("About");
            string privacyPolicySettingCommandTitle = loader.GetString("PrivacyPolicy");

            SettingsCommand defaultsCommand = new SettingsCommand("about", aboutSettingCommandTitle,
                                                                  (handler) =>
            {
                SettingsFlyoutAbout sfa = new SettingsFlyoutAbout();
                sfa.Show();
            });

            e.Request.ApplicationCommands.Add(defaultsCommand);

            SettingsCommand privacyPolicyCommand = new SettingsCommand("privacypolicy", privacyPolicySettingCommandTitle,
                                                                       (handler) =>
            {
                SettingsFlyoutPrivacyPolicy sfpp = new SettingsFlyoutPrivacyPolicy();
                sfpp.Show();
            });

            e.Request.ApplicationCommands.Add(privacyPolicyCommand);
        }
Ejemplo n.º 3
0
 private void AboutBtn_Click(object sender, RoutedEventArgs e)
 {
     Button b = sender as Button;
     if (b != null)
     {
         SettingsFlyoutAbout sfa = new SettingsFlyoutAbout();
         sfa.ShowIndependent();
     }
 }
Ejemplo n.º 4
0
        private void OnCommandsRequested(SettingsPane settingsPane, SettingsPaneCommandsRequestedEventArgs e)
        {
            var loader = new Windows.ApplicationModel.Resources.ResourceLoader();
            string aboutSettingCommandTitle = loader.GetString("About");
            string privacyPolicySettingCommandTitle = loader.GetString("PrivacyPolicy");

            SettingsCommand defaultsCommand = new SettingsCommand("about", aboutSettingCommandTitle,
                (handler) =>
                {
                    SettingsFlyoutAbout sfa = new SettingsFlyoutAbout();
                    sfa.Show();
                });
            e.Request.ApplicationCommands.Add(defaultsCommand);

            SettingsCommand privacyPolicyCommand = new SettingsCommand("privacypolicy", privacyPolicySettingCommandTitle,
                (handler) =>
                {
                    SettingsFlyoutPrivacyPolicy sfpp = new SettingsFlyoutPrivacyPolicy();
                    sfpp.Show();
                });
            e.Request.ApplicationCommands.Add(privacyPolicyCommand);
        }