Class
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:

cs-api-definition
[TelerikToolboxCategory("Containers")]
public class RadBookItem : ContentControl

Inheritance: objectRadBookItem

Constructors

RadBookItem()

Initializes a new instance of the RadBookItem class.

Declaration

cs-api-definition
public RadBookItem()

Fields

IndexProperty

DependencyProperty for the Index property.

Declaration

cs-api-definition
public static readonly DependencyProperty IndexProperty

Field Value

DependencyProperty

IsHardPaperProperty

Identifies the IsHardPaper dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsHardPaperProperty

Field Value

DependencyProperty

PositionProperty

DependencyProperty for the Position property.

Declaration

cs-api-definition
public static readonly DependencyProperty PositionProperty

Field Value

DependencyProperty

Properties

Index

Gets the index of the page.

Declaration

cs-api-definition
public int Index { get; }

Property Value

int

The index.

IsHardPaper

Gets or sets the IsHardPaper property.

Declaration

cs-api-definition
public bool IsHardPaper { get; set; }

Property Value

bool

Position

Gets the position of the page - Left or Right.

Declaration

cs-api-definition
public PagePosition Position { get; }

Property Value

PagePosition

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer.

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsHardPaperChanged(bool, bool)

Called when the IsHardPaper property changes.

Declaration

cs-api-definition
protected virtual void OnIsHardPaperChanged(bool oldValue, bool newValue)

Parameters

oldValue

bool

newValue

bool

OnPageMouseEnter(PageMouseEventArgs)

Raises the event.

Declaration

cs-api-definition
public virtual void OnPageMouseEnter(PageMouseEventArgs e)

Parameters

e

PageMouseEventArgs

The PageMouseEventArgs instance containing the event data.

OnPageMouseLeave(PageMouseEventArgs)

Raises the event.

Declaration

cs-api-definition
public virtual void OnPageMouseLeave(PageMouseEventArgs e)

Parameters

e

PageMouseEventArgs

The PageMouseEventArgs instance containing the event data.

OnPageMouseMove(PageMouseEventArgs)

Raises the event.

Declaration

cs-api-definition
public virtual void OnPageMouseMove(PageMouseEventArgs e)

Parameters

e

PageMouseEventArgs

The PageMouseEventArgs instance containing the event data.