RadBookItem
Represents a page within a book, allowing for interactive page turning mechanisms such as single and double clicks, as well as drag gestures. This class is designed as a container for the pages of a book, managing the visual states for both normal and interactive behaviors. The RadBookItem class provides properties such as Index to get the page's position in the book, Position to identify the page's side (left or right), and IsHardPaper to indicate whether the page has a hard cover. Event handlers are provided for mouse interactions, allowing developers to respond to actions such as dragging and clicking on the page corners. The class handles visual elements related to shadow effects for a more realistic book presentation.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadBookItem : ContentControl
Inheritance: objectRadBookItem
Constructors
Initializes a new instance of the RadBookItem class.
public RadBookItem()
Fields
IndexProperty
DependencyProperty
DependencyProperty for the Index property.
public static readonly DependencyProperty IndexProperty
IsHardPaperProperty
DependencyProperty
Identifies the IsHardPaper dependency property.
public static readonly DependencyProperty IsHardPaperProperty
PositionProperty
DependencyProperty
DependencyProperty for the Position property.
public static readonly DependencyProperty PositionProperty
Properties
Gets or sets the IsHardPaper property.
public bool IsHardPaper { get; set; }
Gets the position of the page - Left or Right.
public PagePosition Position { get; }
Methods
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Raises the event.
public virtual void OnPageMouseEnter(PageMouseEventArgs e)
The PageMouseEventArgs instance containing the event data.
Raises the event.
public virtual void OnPageMouseLeave(PageMouseEventArgs e)
The PageMouseEventArgs instance containing the event data.
Raises the event.
public virtual void OnPageMouseMove(PageMouseEventArgs e)
The PageMouseEventArgs instance containing the event data.