示例#1
0
        private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (LookedFilms.IsSelected)
            {
                ChildFrame.Navigate(typeof(LookedFilmsPage));
            }
            else if (SearchFilm.IsSelected)
            {
                ChildFrame.Navigate(typeof(SearchFilmPage));
            }

            SplitPanel.IsPaneOpen = !SplitPanel.IsPaneOpen;
        }
        /// <summary>
        /// Navigate to selected view
        /// </summary>
        private bool NavigateToView(string selectedView)
        {
            var view = Assembly.GetExecutingAssembly()
                       .GetType($"IntruderDetectionApp_UWP.{selectedView}");

            if (string.IsNullOrWhiteSpace(selectedView) || view == null)
            {
                return(false);
            }

            ChildFrame.Navigate(view, m_psSkill, new EntranceNavigationTransitionInfo());
            return(true);
        }
示例#3
0
 public ContainerPage()
 {
     this.InitializeComponent();
     ChildFrame.Navigate(typeof(LookedFilmsPage));
 }