Ejemplo n.º 1
0
        void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
        {
            var optionsCharmCmd = new SettingsCommand("options", "Options", handler => {
                var flyout = Flyouts.Build("Options", new Settings());
                flyout.Show();
            });
            var privacyPolicyCharmCmd = new SettingsCommand("privacy", "Privacy policy", handler => {
                var flyout = Flyouts.Build("Privacy policy", new PrivacyPolicy());
                flyout.Show();
            });
            var appCommands = args.Request.ApplicationCommands;

            appCommands.Add(optionsCharmCmd);
            appCommands.Add(privacyPolicyCharmCmd);
        }
Ejemplo n.º 2
0
        private void InitSettingsCharm()
        {
            var flyout = Flyouts.Build("Options", new Settings());

            SettingsPane.GetForCurrentView().CommandsRequested += App_CommandsRequested;
        }