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 class.
public BookPage()
Properties
CornerRadius
A value that represents the degree to which the corners of a BookPage are rounded.
public CornerRadius CornerRadius { get; set; }
Property Value
- CornerRadius:
The default value is
0,0,0,0.
Face
A value that indicates if the page is back or front facing.
public BookPageFace Face { get; }
Property Value
- BookPageFace:
The default value is
BookPageFace.Front
Footer
The footer content.
FooterTemplate
The DataTemplate used to present the footer content.
public DataTemplate? FooterTemplate { get; set; }
Property Value
- DataTemplate:
The default value is
null.
FooterTemplateSelector
The DataTemplateSelector used to present the footer content.
public DataTemplateSelector? FooterTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The default value is
null.
Header
The header content.
HeaderTemplate
The DataTemplate used to present the header content.
public DataTemplate? HeaderTemplate { get; set; }
Property Value
- DataTemplate:
The default value is
null.
HeaderTemplateSelector
The DataTemplateSelector used to present the header content.
public DataTemplateSelector? HeaderTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The default value is
null.
Index
The index of the page in the associated book control.
IsBindingShadowVisible
Indicates whether the binding shadow is visible.
public bool IsBindingShadowVisible { get; set; }
Property Value
- bool:
trueif the binding shadow is visible; otherwise,false. The default value istrue.
IsFirstPage
Indicates if the page is the first page of the book.
public bool IsFirstPage { get; }
Property Value
- bool:
trueif the page is the first page of the book; otherwise,false. The default value isfalse
IsLastPage
Indicates if the page is the last page of the book.
public bool IsLastPage { get; }
Property Value
- bool:
trueif the page is the last page of the book; otherwise,false. The default value isfalse
IsReversePage
Indicates if the page is on the reverse side of a visible page.
public bool IsReversePage { get; }
Property Value
- bool:
trueif the page is on the reverse side of a visible page; otherwise,false. The default value isfalse
IsSelected
Indicates if the page is selected.
public bool IsSelected { get; }
Property Value
- bool:
trueif the page is selected; otherwise,false. The default value isfalse
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes 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
Defines the CornerRadius property.
public static readonly DependencyProperty CornerRadiusProperty
FaceProperty
Defines the Face property.
public static readonly DependencyProperty FaceProperty
FooterProperty
Defines the Footer property.
public static readonly DependencyProperty FooterProperty
FooterTemplateProperty
Defines the FooterTemplate property.
public static readonly DependencyProperty FooterTemplateProperty
FooterTemplateSelectorProperty
Defines the FooterTemplateSelector property.
public static readonly DependencyProperty FooterTemplateSelectorProperty
HeaderProperty
Defines the Header property.
public static readonly DependencyProperty HeaderProperty
HeaderTemplateProperty
Defines the HeaderTemplate property.
public static readonly DependencyProperty HeaderTemplateProperty
HeaderTemplateSelectorProperty
Defines the HeaderTemplateSelector property.
public static readonly DependencyProperty HeaderTemplateSelectorProperty
IndexProperty
Defines the Index property.
public static readonly DependencyProperty IndexProperty
IsBindingShadowVisibleProperty
Defines the IsBindingShadowVisible property.
public static readonly DependencyProperty IsBindingShadowVisibleProperty
IsFirstPageProperty
Defines the IsFirstPage property.
public static readonly DependencyProperty IsFirstPageProperty
IsLastPageProperty
Defines the IsLastPage property.
public static readonly DependencyProperty IsLastPageProperty
IsReversePageProperty
Defines the IsReversePage property.
public static readonly DependencyProperty IsReversePageProperty
IsSelectedProperty
Defines the IsSelected property.
public static readonly DependencyProperty IsSelectedProperty