Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 private void OnPageUpdated(BookshelfViewModel sender, Page page)
 {
     UpdateShelfContentInfo(page, Sorting.SelectedSortOrderFunction, Sorting.SelectedSortDirection);
 }
Esempio n. 4
0
 public OpenBookSwipeTransition(BookshelfViewModel bookshelf, Book3DViewModel book3D, Direction direction)
 {
     Bookshelf = bookshelf;
     Book3D    = book3D;
     Direction = direction;
 }