In This Article

BookPage Class

Represents a page of a Book control.

[TemplatePart(Name = "PART_BindingShadow", Type = typeof(Rectangle))]
[TemplatePart(Name = "PART_FlippingShadow", Type = typeof(Path))]
public class BookPage : ContentControl
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl object

Constructors

BookPage()

Initializes an instance of the BookPage class.

public BookPage()

Properties

CornerRadius

Gets or sets a value that represents the degree to which the corners of a BookPage are rounded. This is a dependency property.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius:

The CornerRadius that describes the degree to which corners are rounded. The default value is 0,0,0,0.

Face

Gets a value that indicates if the page is back or front facing. This is a dependency property.

public BookPageFace Face { get; }

Property Value

BookPageFace:

A BookPageFace that indicates if the page is back or front facing. The default value is BookPageFace.Front

Gets or sets the footer content. This is a dependency property.

public object Footer { get; set; }

Property Value

object:

The footer content. The default value is null.

FooterTemplate

Gets or sets the DataTemplate used to present the footer content. This is a dependency property.

public DataTemplate FooterTemplate { get; set; }

Property Value

DataTemplate:

The DataTemplate used to present the footer content. The default value is null.

FooterTemplateSelector

Gets or sets the DataTemplateSelector used to present the footer content. This is a dependency property.

public DataTemplateSelector FooterTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

The DataTemplateSelector used to present the footer content. The default value is null.

Header

Gets or sets the header content. This is a dependency property.

public object Header { get; set; }

Property Value

object:

The header content. The default value is null.

HeaderTemplate

Gets or sets the DataTemplate used to present the header content. This is a dependency property.

public DataTemplate HeaderTemplate { get; set; }

Property Value

DataTemplate:

The DataTemplate used to present the header content. The default value is null.

HeaderTemplateSelector

Gets or sets the DataTemplateSelector used to present the header content. This is a dependency property.

public DataTemplateSelector HeaderTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

The DataTemplateSelector used to present the header content. The default value is null.

Index

Gets the index of the page in the associated book control. This is a dependency property.

public int Index { get; }

Property Value

int:

The index of the page in the associated book control. The default value is -1

IsBindingShadowVisible

Gets or sets a value indicating whether the binding shadow is visible. This is a dependency property.

public bool IsBindingShadowVisible { get; set; }

Property Value

bool:

true if the binding shadow is visible; otherwise, false. The default value is true.

IsFirstPage

Gets a value that indicates if the page is the first page of the book. This is a dependency property.

public bool IsFirstPage { get; }

Property Value

bool:

true if the page is the first page of the book; otherwise, false. The default value is false

IsLastPage

Gets a value that indicates if the page is the last page of the book. This is a dependency property.

public bool IsLastPage { get; }

Property Value

bool:

true if the page is the last page of the book; otherwise, false. The default value is false

IsReversePage

Gets a value that indicates if the page is on the reverse side of a visible page. This is a dependency property.

public bool IsReversePage { get; }

Property Value

bool:

true if the page is on the reverse side of a visible page; otherwise, false. The default value is false

IsSelected

Gets a value that indicates if the page is selected. This is a dependency property.

public bool IsSelected { get; }

Property Value

bool:

true if the page is selected; otherwise, false. The default value is false

Methods

OnApplyTemplate()

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

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnFooterChanged(object, object)

Called when the footer has changed.

protected virtual void OnFooterChanged(object oldValue, object newValue)
Parameter Type Description
oldValue object

The old value.

newValue object

The new value.

OnFooterTemplateChanged(DataTemplate, DataTemplate)

Called when the footer template has changed.

protected virtual void OnFooterTemplateChanged(DataTemplate oldValue, DataTemplate newValue)
Parameter Type Description
oldValue DataTemplate

The old value.

newValue DataTemplate

The new value.

OnFooterTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)

Called when the footer template selector has changed.

protected virtual void OnFooterTemplateSelectorChanged(DataTemplateSelector oldValue, DataTemplateSelector newValue)
Parameter Type Description
oldValue DataTemplateSelector

The old value.

newValue DataTemplateSelector

The new value.

OnHeaderChanged(object, object)

Called when the header has changed.

protected virtual void OnHeaderChanged(object oldValue, object newValue)
Parameter Type Description
oldValue object

The old value.

newValue object

The new value.

OnHeaderTemplateChanged(DataTemplate, DataTemplate)

Called when the header template has changed.

protected virtual void OnHeaderTemplateChanged(DataTemplate oldValue, DataTemplate newValue)
Parameter Type Description
oldValue DataTemplate

The old value.

newValue DataTemplate

The new value.

OnHeaderTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)

Called when the header template selector has changed.

protected virtual void OnHeaderTemplateSelectorChanged(DataTemplateSelector oldValue, DataTemplateSelector newValue)
Parameter Type Description
oldValue DataTemplateSelector

The old value.

newValue DataTemplateSelector

The new value.

Fields

CornerRadiusProperty

Identifies the CornerRadius dependency property. This field is read-only.

public static readonly DependencyProperty CornerRadiusProperty

FaceProperty

Identifies the read-only Face dependency property. This field is read-only.

public static readonly DependencyProperty FaceProperty

FooterProperty

Identifies the Footer dependency property. This field is read-only.

public static readonly DependencyProperty FooterProperty

FooterTemplateProperty

Identifies the FooterTemplate dependency property. This field is read-only.

public static readonly DependencyProperty FooterTemplateProperty

FooterTemplateSelectorProperty

Identifies the FooterTemplateSelector dependency property. This field is read-only.

public static readonly DependencyProperty FooterTemplateSelectorProperty

HeaderProperty

Identifies the Header dependency property. This field is read-only.

public static readonly DependencyProperty HeaderProperty

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property. This field is read-only.

public static readonly DependencyProperty HeaderTemplateProperty

HeaderTemplateSelectorProperty

Identifies the HeaderTemplateSelector dependency property. This field is read-only.

public static readonly DependencyProperty HeaderTemplateSelectorProperty

IndexProperty

Identifies the read-only Index dependency property. This field is read-only.

public static readonly DependencyProperty IndexProperty

IsBindingShadowVisibleProperty

Identifies the IsBindingShadowVisible dependency property. This field is read-only.

public static readonly DependencyProperty IsBindingShadowVisibleProperty

IsFirstPageProperty

Identifies the read-only IsFirstPage dependency property. This field is read-only.

public static readonly DependencyProperty IsFirstPageProperty

IsLastPageProperty

Identifies the read-only IsLastPage dependency property. This field is read-only.

public static readonly DependencyProperty IsLastPageProperty

IsReversePageProperty

Identifies the read-only IsReversePage dependency property. This field is read-only.

public static readonly DependencyProperty IsReversePageProperty

IsSelectedProperty

Identifies the read-only IsSelected dependency property. This field is read-only.

public static readonly DependencyProperty IsSelectedProperty