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()

public BookPageStyleSelector()

Properties

BackFacingPageStyle

Gets or sets a Style applied to all back-facing pages.

public Style BackFacingPageStyle { get; set; }

Property Value

Style:

A Style applied to all back-facing pages.

Remarks

The FirstPageStyle and LastPageStyle properties take precedence over this property.

FirstPageStyle

Gets or sets a Style applied to the first page.

public Style FirstPageStyle { get; set; }

Property Value

Style:

A Style applied to the first page.

FrontFacingPageStyle

Gets or sets a Style applied to all front-facing pages.

public Style FrontFacingPageStyle { get; set; }

Property Value

Style:

A Style applied to all front-facing pages.

Remarks

The FirstPageStyle and LastPageStyle properties take precedence over this property.

LastPageStyle

Gets or sets a Style applied to the last page.

public Style LastPageStyle { get; set; }

Property Value

Style:

A Style applied to the last page.

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 a Style; otherwise null.

Inherited Members