コード例 #1
0
ファイル: App.xaml.cs プロジェクト: MerlinCooper/f1livetiming
        protected override void OnWindowCreated(WindowCreatedEventArgs args)
        {
            SettingsPane.GetForCurrentView().CommandsRequested += (s, e) =>
            {
                SettingsCommand command = new SettingsCommand("settings", "Settings", (handler) =>
                {
                    MainSettingsFlyout sf = new MainSettingsFlyout();
                    sf.Show();
                });

                e.Request.ApplicationCommands.Add(command);
            };

            base.OnWindowCreated(args);
        }
コード例 #2
0
        void App_OnSettingsPageRequest()
        {
            MainSettingsFlyout sf = new MainSettingsFlyout();

            sf.Show();
        }