Exemple #1
0
 private async void TopicWebViewOnNavigationCompleted(WebView sender, WebViewNavigationCompletedEventArgs args)
 {
     TopicWebView.NavigationCompleted -= TopicWebViewOnNavigationCompleted;
     if (!string.IsNullOrEmpty(Loc.Topic.CurrentTopic.TopicReponseId))
     {
         await TopicWebView.InvokeScriptAsync("scrollTo", new string[1]
         {
             Loc.Topic.CurrentTopic.TopicReponseId
         });
     }
 }
Exemple #2
0
 private void CurrentTopic_TopicReadyToBeDisplayed(Topic topic)
 {
     if (topic != null)
     {
         TopicWebView.Navigate(Strings.TopicPageCacheUri);
     }
     else
     {
         TopicWebView.NavigateToString("");
     }
 }
Exemple #3
0
 private void CurrentTopic_TopicReadyToBeDisplayed(Topic topic)
 {
     TopicWebView.NavigationCompleted += TopicWebViewOnNavigationCompleted;
     TopicWebView.Navigate(Strings.TopicPageCacheUri);
 }
Exemple #4
0
 async Task ScrollTo(string anchor)
 {
     await TopicWebView.InvokeScriptAsync("scrollTo", new string[1] {
         anchor
     });
 }