In This Article

BookPageStyleSelector Class

Provides a way to choose a Style for BookPage based various properties.

public class BookPageStyleSelector : StyleSelector
Inheritance:
object StyleSelector object

Constructors

BookPageStyleSelector()

Initializes an instance of the class.

public BookPageStyleSelector()

Properties

BackFacingPageStyle

A Style applied to all back-facing pages.

public Style? BackFacingPageStyle { get; set; }

Property Value

Style

Remarks

The FirstPageStyle and LastPageStyle properties take precedence over this property.

FirstPageStyle

A Style applied to the first page.

public Style? FirstPageStyle { get; set; }

Property Value

Style

FrontFacingPageStyle

A Style applied to all front-facing pages.

public Style? FrontFacingPageStyle { get; set; }

Property Value

Style

Remarks

The FirstPageStyle and LastPageStyle properties take precedence over this property.

LastPageStyle

A Style applied to the last page.

public Style? LastPageStyle { get; set; }

Property Value

Style

Remarks

The FirstPageStyle property take precedence over this property.

Methods

SelectStyle(object, DependencyObject)

When overridden in a derived class, returns a Style based on custom logic.

public override Style? SelectStyle(object item, DependencyObject container)
Parameter Type Description
item object

The content.

container DependencyObject

The element to which the style will be applied.

Returns

Style:

Returns an application-specific style to apply; otherwise, null.

Inherited Members

Extension Methods