New to Telerik UI for WPFStart a free 30-day trial

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:

C#
[TelerikToolboxCategory("Containers")]
public class RadBookItem : ContentControl

Inheritance: objectRadBookItem

Constructors

Initializes a new instance of the RadBookItem class.

C#
public RadBookItem()

Fields

IndexProperty

DependencyProperty

DependencyProperty for the Index property.

C#
public static readonly DependencyProperty IndexProperty

IsHardPaperProperty

DependencyProperty

Identifies the IsHardPaper dependency property.

C#
public static readonly DependencyProperty IsHardPaperProperty

PositionProperty

DependencyProperty

DependencyProperty for the Position property.

C#
public static readonly DependencyProperty PositionProperty

Properties

Gets the index of the page.

C#
public int Index { get; }
Property Value:

The index.

Gets or sets the IsHardPaper property.

C#
public bool IsHardPaper { get; set; }

Gets the position of the page - Left or Right.

C#
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 .

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the IsHardPaper property changes.

C#
protected virtual void OnIsHardPaperChanged(bool oldValue, bool newValue)
Parameters:oldValueboolnewValuebool

Raises the event.

C#
public virtual void OnPageMouseEnter(PageMouseEventArgs e)
Parameters:ePageMouseEventArgs

The PageMouseEventArgs instance containing the event data.

Raises the event.

C#
public virtual void OnPageMouseLeave(PageMouseEventArgs e)
Parameters:ePageMouseEventArgs

The PageMouseEventArgs instance containing the event data.

Raises the event.

C#
public virtual void OnPageMouseMove(PageMouseEventArgs e)
Parameters:ePageMouseEventArgs

The PageMouseEventArgs instance containing the event data.