コード例 #1
0
        private void PostControl_Tapped(object sender, TappedRoutedEventArgs e)
        {
            PostControl postControl = sender as PostControl;

            if (postControl.GotoReadingPage)
            {
                Post post = postControl.DataContext as Post;
                this.Frame.Navigate(typeof(ReadingPage), post);
            }
        }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: xu8751/cnblogs-UAP
 private void PostControl_Tapped(object sender, TappedRoutedEventArgs e)
 {
     try
     {
         PostControl postControl = sender as PostControl;
         postControl.ShowStoryBoard();
     }
     catch (Exception)
     {
     }
 }
コード例 #3
0
        private void PostControl_Tapped(object sender, TappedRoutedEventArgs e)
        {
            PostControl postControl = sender as PostControl;

            if (postControl.GotoReadingPage)
            {
                Post post = postControl.DataContext as Post;
                this.Frame.Navigate(typeof(PostReadingPage), post);
            }
            else
            {
                this.lv_BestPosts.ScrollIntoView(sender, ScrollIntoViewAlignment.Leading);
            }
        }