ClassRadBookItem
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
RadBookItem()
Initializes a new instance of the RadBookItem class.
Declaration
public RadBookItem()
Fields
IndexProperty
DependencyProperty for the Index property.
Declaration
public static readonly DependencyProperty IndexProperty
Field Value
DependencyProperty
IsHardPaperProperty
Identifies the IsHardPaper dependency property.
Declaration
public static readonly DependencyProperty IsHardPaperProperty
Field Value
DependencyProperty
PositionProperty
DependencyProperty for the Position property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
DependencyProperty
Properties
Index
Gets the index of the page.
IsHardPaper
Gets or sets the IsHardPaper property.
Position
Gets the position of the page - Left or Right.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsHardPaperChanged(bool, bool)
Called when the IsHardPaper property changes.
OnPageMouseEnter(PageMouseEventArgs)
Raises the event.
Declaration
public virtual void OnPageMouseEnter(PageMouseEventArgs e)
Parameters
e
The PageMouseEventArgs instance containing the event data.
OnPageMouseLeave(PageMouseEventArgs)
Raises the event.
Declaration
public virtual void OnPageMouseLeave(PageMouseEventArgs e)
Parameters
e
The PageMouseEventArgs instance containing the event data.
OnPageMouseMove(PageMouseEventArgs)
Raises the event.
Declaration
public virtual void OnPageMouseMove(PageMouseEventArgs e)
Parameters
e
The PageMouseEventArgs instance containing the event data.