private void Storingen_ItemClick_1(object sender, ItemClickEventArgs e)
        {
            Storing storing = e.ClickedItem as Storing;

            if (storing != null)
            {
                _flyOut.ShowFlyout(new StoringenFlyOutControl()
                {
                    DataContext = storing
                });
            }
        }
Exemple #2
0
        void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
        {
            if (args.Request.ApplicationCommands.Count == 0)
            {
                // Add an About command
                var about = new SettingsCommand("about", _resourceLoader.GetString("AppBarAboutTitle"), (handler) =>
                {
                    var settings = new SettingsFlyout();
                    settings.ShowFlyout(new AboutUserControl());
                });
                args.Request.ApplicationCommands.Add(about);


                // Add an settings command
                var settingsCommand = new SettingsCommand("settings", _resourceLoader.GetString("AppBarSettingsTitle"), (handler) =>
                {
                    var settingsFlyout = new SettingsFlyout();
                    settingsFlyout.ShowFlyout(new SettingsUserControl());
                });
                args.Request.ApplicationCommands.Add(settingsCommand);

                // Add an privacy policy command
                var privacyCommand = new SettingsCommand("privacy", "Privacy Policy", (handler) =>
                {
                    var settingsFlyout = new SettingsFlyout();
                    settingsFlyout.ShowFlyout(new PrivacyPolicyControl());
                });
                args.Request.ApplicationCommands.Add(privacyCommand);
            }
        }
        private void liveChannelGridView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var item = e.ClickedItem as LiveListItem;

            if (item == null)
            {
                return;
            }

            if (LiveCenterFactoryBase.IsDirectPlay(item.ChannelInfo.LiveType))
            {
                if (IsStart(item))
                {
                    this.Frame.Navigate(typeof(PlayPage), item);
                }
            }
            else
            {
                if (_settingsFlyout == null)
                {
                    _settingsFlyout                       = new SettingsFlyout();
                    _settingsFlyout.CloseAction          += liveDetailClose;
                    _liveDetailControl                    = new LiveDetailControl();
                    _liveDetailControl.CloseAction       += liveDetailClose;
                    _liveDetailControl.HttpTimeOutOrFail += http_FailorTimeOut;
                    _settingsFlyout.ShowFlyout(_liveDetailControl, 510, false);

                    emptyGrid.Width = 510;
                }

                _liveDetailControl.SetSource(item);
            }
        }
        /// <summary>
        /// Define Settings Pages for the application once the OnCommandsRequested event is raised.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
        {
            var travelerInfo = new SettingsCommand("TravelerInfo", ResourceHelper.ResourceLoader.GetString("TravelerInfo"), (handler) =>
            {
                var settings = new SettingsFlyout();
                settings.ShowFlyout(new TravelerInfoControl());
            });

            args.Request.ApplicationCommands.Add(travelerInfo);

            var about = new SettingsCommand("About", ResourceHelper.ResourceLoader.GetString("About"), (handler) =>
            {
                var settings = new SettingsFlyout();
                settings.ShowFlyout(new AboutControl());
            });

            args.Request.ApplicationCommands.Add(about);

            var options = new SettingsCommand("Options", ResourceHelper.ResourceLoader.GetString("Options"), (handler) =>
            {
                var settings = new SettingsFlyout();
                settings.ShowFlyout(new OptionsControl());
            });

            args.Request.ApplicationCommands.Add(options);
        }
        static void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
        {
            var about = new SettingsCommand("about", "About", (handler) =>
            {
                var settings = new SettingsFlyout();
                settings.ShowFlyout(new About());
            });

            args.Request.ApplicationCommands.Add(about);
        }
Exemple #6
0
        private void App_SettingRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
        {
            var polices = new SettingsCommand("polices", "隐私策略", async handler =>
            {
                await Windows.System.Launcher.LaunchUriAsync(Utils.Constants.HttpPolicesUri);
            });

            var about = new SettingsCommand("about", "关于", handler =>
            {
                var settings = new SettingsFlyout();
                settings.ShowFlyout(new About(), 346, true);
            });

            var download = new SettingsCommand("download", "下载路径设置", handler =>
            {
                CommonUtils.DownloadFolderSelect();
            });

            args.Request.ApplicationCommands.Add(download);
            args.Request.ApplicationCommands.Add(polices);
            args.Request.ApplicationCommands.Add(about);
        }
Exemple #7
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            SettingsFlyout flyout = new SettingsFlyout();

            flyout.ShowFlyout(new FlyoutContentUserControl());
        }
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     SettingsFlyout flyout = new SettingsFlyout();
     flyout.ShowFlyout(new FlyoutContentUserControl());
 }