[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Collapse]Layout Management
   [Expand]Dock Windows
   [Expand]Tile and Layout
   [Expand]Tab Control
    Book Control
    Workspace Manager
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Book Control

The DXBook for WPF control allows you to present data as a book. It is represented by the Book class.

Expanded Data Binding and Presentation

To display data, the DXBook needs to be bound to a data source. It can be bound to any object that implements the System.Collections.IEnumerable interface or its descendant (e.g., IList, ICollection). To bind the DXBook to a data source, use its Book.DataSource property.

The DXBook control doesn't automatically present data from a bound data source. You should create a template that defines data presentation and page layout, and assign it to the Book.PageTemplate property.

Expanded Page Navigation

Pages can be accessed using index notation. The odd index corresponds to the left page, the even index corresponds to the right page, -1 corresponds to a cover. You can specify the index of the currently opened page via the Book.PageIndex property. The total number of pages in the book can be obtained using the Book.PageCount property.

The first page can be displayed on the left or right side of the book (in the second instance, the cover is displayed on the left side). To specify where the first page should be displayed, use the Book.FirstPage property.

Before a new page is opened, the Book.PageIndexChanging event is fired, allowing you to cancel turning the current page or implement custom page navigation. After a new page has been opened, the Book.PageIndexChanged event is raised.

Expanded Animation Types and Settings

The DXBook plays two types of animation: page and short animation.

Expanded Page Animation

Page animation is played when an entire page is being turned over.

Page animation speed is specified via the Book.AnimationSpeed property.

Expanded Short Animation

When an end-user hovers the mouse pointer over an active area around the page corner, the corner is automatically turned up, indicating that this page can be turned. If the mouse pointer leaves the active area, it is turned down. At that moment, the short animation is played.

Short animation speed is specified via the Book.ShortAnimationSpeed property.

Expanded Active Area

The area around page corners, over which the mouse pointer should be hovered to make the page corner turn up, is called the active area.

To change the active area's size, use the Book.ActiveAreaSize property.

Expanded Animation Settings

Property Description
Book.AnimationSpeed Specifies the speed the page animation is played.
Book.ShortAnimationSpeed Specifies the speed the short animation is played.
Book.ActiveAreaSize Specifies the size of the active area within a page.
Book.AnimationRate Specifies the animation rate.

Is this topic helpful?​​​​​​​