public override void OnSwipeStarting(double deltaX, double cummulatedX) { Bookshelf = HBS.ViewModel.ShelfViewModel.GetSelectedBookshelf(); Book3D = HBS.ViewModel.Opened.BookVM.Book3D; var direction = deltaX > 0 ? Direction.Left : Direction.Right; BookSwipeTransition = new OpenBookSwipeTransition(Bookshelf, Book3D, direction); BookSwipeTransition.OnTransitionStarting(); }
public void CreateShelf() { var bookshelfCount = 4; for (var i = 0; i < bookshelfCount; i++) { var bookshelf3D = new Bookshelf3DViewModel(); bookshelf3D.CreateBooks(); var bookshelf = new BookshelfViewModel(bookshelf3D); Items.Add(bookshelf); } }
private void OnPageUpdated(BookshelfViewModel sender, Page page) { UpdateShelfContentInfo(page, Sorting.SelectedSortOrderFunction, Sorting.SelectedSortDirection); }
public OpenBookSwipeTransition(BookshelfViewModel bookshelf, Book3DViewModel book3D, Direction direction) { Bookshelf = bookshelf; Book3D = book3D; Direction = direction; }