Ejemplo n.º 1
0
 /// <summary>
 /// Occurs when the page has been constructed and added to the object tree, and is ready for interaction.
 /// </summary>
 /// <param name="sender">The object where the event handler is attached.</param>
 /// <param name="e">The event data.</param>
 private void FavoritesPage_Loaded(object sender, RoutedEventArgs e)
 {
     if (ChangelogManager.ShouldDisplayChangelog())
     {
         this.Frame.Navigate(typeof(ChangelogPage));
     }
 }
        /// <summary>
        /// Populates the page with content passed during navigation. Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="Common.NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session. The state will be null the first time a page is visited.</param>
        private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            string changelog = ChangelogManager.ProduceChangelog();

            this.webViewChangelog.Visibility = Visibility.Collapsed;
            this.webViewChangelog.NavigateToString(changelog);
        }
 /// <summary>
 /// Occurs when the WebView has finished loading the current content or if navigation has failed.
 /// </summary>
 /// <param name="sender">The event source.</param>
 /// <param name="args">The event data. If there is no event data, this parameter will be null.</param>
 private void webViewChangelog_NavigationCompleted(WebView sender, WebViewNavigationCompletedEventArgs args)
 {
     webViewChangelog.Visibility = Visibility.Visible;
     ChangelogManager.ConfirmRead();
 }