예제 #1
0
        private void ReplyButton_Click(object sender, RoutedEventArgs e)
        {
            int id  = (int)((AppBarButton)sender).Content;
            var nav = new NavType();

            nav.Type      = typeof(WebView);
            nav.Parameter = "https://news.ycombinator.com/reply?id=" + id + "&goto=item%3Fid%3D" + id;
            ExecuteNav(nav);
        }
예제 #2
0
        private void ExecuteNav(NavType navType)
        {
            var type = navType.Type;

            this.contentFrame.Navigate(navType.Type, navType.Parameter);
            // when we nav home, clear history
            if (type.Equals(typeof(Views.MainPage)))
            {
                this.contentFrame.BackStack.Clear();
            }
        }