Example #1
0
        private void PageControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            NotifyUser(String.Empty, NotifyType.StatusMessage);

            ListBox  pageListBox = sender as ListBox;
            PageItem page        = pageListBox.SelectedItem as PageItem;

            if (page != null)
            {
                PageFrame.Navigate(page.ClassType);
                if (Window.Current.Bounds.Width < 640)
                {
                    Splitter.IsPaneOpen = false;
                }
            }
        }
Example #2
0
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            PageItem page = value as PageItem;

            return(MainPage.Current.Pages.IndexOf(page) + 1 + ")" + page.Title);
        }