예제 #1
0
        void onCommandsRequested(SettingsPane settingPane, SettingsPaneCommandsRequestedEventArgs e)
        {
            SettingsCommand updateCommand = new SettingsCommand("Privacy Policy", "Privacy Policy", (handler) =>
            {
                SettingsFlyout sf = new PrivacyPolicy();
                sf.Show();
            });

            SettingsCommand updateCommand2 = new SettingsCommand("About Us", "About", (handler) =>
            {
                SettingsFlyout sf = new About();
                sf.Show();
            });
            e.Request.ApplicationCommands.Add(updateCommand2);
            e.Request.ApplicationCommands.Add(updateCommand);
            
        }
예제 #2
0
        void onCommandsRequested(SettingsPane settingPane, SettingsPaneCommandsRequestedEventArgs e)
        {
            SettingsCommand updateCommand = new SettingsCommand("Privacy Policy", "Privacy Policy", (handler) =>
            {
                SettingsFlyout sf = new PrivacyPolicy();
                sf.Show();
            });

            SettingsCommand updateCommand2 = new SettingsCommand("About Us", "About", (handler) =>
            {
                SettingsFlyout sf = new About();
                sf.Show();
            });

            e.Request.ApplicationCommands.Add(updateCommand2);
            e.Request.ApplicationCommands.Add(updateCommand);
        }