Exemplo n.º 1
0
 private void GestureListener_Flick(object sender, FlickGestureEventArgs e)
 {
     if (e.Direction == System.Windows.Controls.Orientation.Horizontal && e.HorizontalVelocity < 0)
     {
         string tmp = LocalFileCache.ContentEncoder(orgUrl);
         NavigationService.Navigate(new Uri("/Views/NotePage.xaml?url=" + tmp, UriKind.Relative));
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 点击按钮,进入链接阅读
        /// </summary>
        private void ItemBtn_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            BookmarkItem it = (sender as Button).DataContext as BookmarkItem;

            if (it.isUnReaded)
            {
                it.isUnReaded = false;
            }
            string url = LocalFileCache.ContentEncoder(it.href);

            parent.NavigationService.Navigate(new Uri("/Views/BrowserPage.xaml?url=" + url, UriKind.Relative));
        }
Exemplo n.º 3
0
 private void GestureListener_Flick(object sender, FlickGestureEventArgs e)
 {
     if (e.Direction == System.Windows.Controls.Orientation.Horizontal && e.HorizontalVelocity > 0)
     {
         if (App.RootFrame.CanGoBack)
         {
             App.RootFrame.GoBack();
         }
         else
         {
             string tmp = LocalFileCache.ContentEncoder(url);
             NavigationService.Navigate(new Uri("/Views/BrowserPage.xaml?url=" + tmp, UriKind.Relative));
         }
     }
 }