public void MoveToPreviousPage()
 {
     if (CurrentPage == BookCurrentPage.RightSheet)
     {
         AnimateToPreviousPage(false, 500);
     }
     CurrentPage =
         CurrentPage == BookCurrentPage.LeftSheet ?
         BookCurrentPage.RightSheet : BookCurrentPage.LeftSheet;
 }
Exemplo n.º 2
0
 public void MoveToNextPage()
 {
     if (CurrentPage == BookCurrentPage.LeftSheet && GetItemsCount() == CurrentSheetIndex)
     {
         AnimateToNextPage(false, 500);
     }
     CurrentPage =
         CurrentPage == BookCurrentPage.LeftSheet ?
         BookCurrentPage.RightSheet : BookCurrentPage.LeftSheet;
 }
Exemplo n.º 3
0
        private static void OnCurrentPageChanged(DependencyObject source, DependencyPropertyChangedEventArgs args)
        {
            BookCurrentPage currentPage = (BookCurrentPage)args.NewValue;
            Book            b           = source as Book;

            if (currentPage == BookCurrentPage.LeftSheet)
            {
                b.AnimateToRightSheet();
            }
            else
            {
                b.AnimateToLeftSheet();
            }
        }
Exemplo n.º 4
0
 public void MoveToPreviousPage()
 {
     if (CurrentPage == BookCurrentPage.RightSheet)
         AnimateToPreviousPage(false, 500);
     CurrentPage =
         CurrentPage == BookCurrentPage.LeftSheet ?
             BookCurrentPage.RightSheet : BookCurrentPage.LeftSheet;
 }