private void SettingBtn_Click(object sender, RoutedEventArgs e) { Button b = sender as Button; if (b != null) { SettingsFlyoutPrivacyPolicy sfpp = new SettingsFlyoutPrivacyPolicy(); sfpp.ShowIndependent(); } }
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); }
private void SettingBtn_Click(object sender, RoutedEventArgs e) { Button b = sender as Button; if (b != null) { SettingsFlyoutPrivacyPolicy sfpp = new SettingsFlyoutPrivacyPolicy(); sfpp.ShowIndependent(); } }
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); }