SeriesItemViewerPage.xaml 的交互逻辑
Inheritance: System.Windows.Controls.Page
Example #1
0
        private void NavigateToSeriesItemViewerPage(SeriesViewModel series)
        {
            this.TitleTextBlock.Text = "sure video was not exists";
            this.LastButton.Visibility = this.NextButton.Visibility = Visibility.Visible;

            if (this.seriesItemViewerPage == null || this.seriesItemViewerPage.ViewModel.Source != series.Source)
            {
                this.seriesItemViewerPage = new SeriesItemViewerPage(series.Source);
            }

            this.ContentFrame.Navigate(this.seriesItemViewerPage);
        }
Example #2
0
        private void NavigateToSeriesItemViewerPage(SeriesViewModel series)
        {
            Debug.Assert(series != null);
            this.TitleTextBlock.Text = "sure video was not exists";
            this.LastButton.Visibility = this.NextButton.Visibility = Visibility.Visible;

            if (this.seriesItemViewerPage?.GetCurrentSeriesViewModel() != series)
            {
                var page = new SeriesItemViewerPage();
                page.SelectVideoControl.OnCommited += this.SelectVideoControl_OnCommited;
                page.Initialize(series);
                this.seriesItemViewerPage = page;
            }

            this.ContentFrame.Navigate(this.seriesItemViewerPage);
        }