Exemplo n.º 1
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            newsItem = (NewsItem)DataContext;

            if (newsItem.IsJobAd) // No comments page for a job ad
            {
                ((IApplicationBarIconButton)this.ApplicationBar.Buttons[0]).IsEnabled = false;
            }

            fullUrl = newsItem.IsLocal ? MainPage.BaseUrls[0] + "/" + newsItem.Url : newsItem.Url;

            NewsItemWebBrowser.Navigate(new Uri(fullUrl, UriKind.Absolute));
        }
Exemplo n.º 2
0
 private void RefreshAppBarMenuItem_Click(object sender, EventArgs e)
 {
     NewsItemWebBrowser.Navigate(new Uri(fullUrl, UriKind.Absolute));
 }