public void MoveToPreviousPage() { if (CurrentPage == BookCurrentPage.RightSheet) { AnimateToPreviousPage(false, 500); } CurrentPage = CurrentPage == BookCurrentPage.LeftSheet ? BookCurrentPage.RightSheet : BookCurrentPage.LeftSheet; }
public void MoveToNextPage() { if (CurrentPage == BookCurrentPage.LeftSheet && GetItemsCount() == CurrentSheetIndex) { AnimateToNextPage(false, 500); } CurrentPage = CurrentPage == BookCurrentPage.LeftSheet ? BookCurrentPage.RightSheet : BookCurrentPage.LeftSheet; }
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(); } }
public void MoveToPreviousPage() { if (CurrentPage == BookCurrentPage.RightSheet) AnimateToPreviousPage(false, 500); CurrentPage = CurrentPage == BookCurrentPage.LeftSheet ? BookCurrentPage.RightSheet : BookCurrentPage.LeftSheet; }