In This Article

BookPageStyleSelector Class

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

public class BookPageStyleSelector : StyleSelector
Inheritance:
System.Object System.Windows.Controls.StyleSelector Object

Constructors

BookPageStyleSelector()

public BookPageStyleSelector()

Properties

BackFacingPageStyle

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

public Style BackFacingPageStyle { get; set; }

Property Value

System.Windows.Style:

A System.Windows.Style applied to all back-facing pages.

Remarks

The FirstPageStyle and LastPageStyle properties take precedence over this property.

FirstPageStyle

Gets or sets a System.Windows.Style applied to the first page.

public Style FirstPageStyle { get; set; }

Property Value

System.Windows.Style:

A System.Windows.Style applied to the first page.

FrontFacingPageStyle

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

public Style FrontFacingPageStyle { get; set; }

Property Value

System.Windows.Style:

A System.Windows.Style applied to all front-facing pages.

Remarks

The FirstPageStyle and LastPageStyle properties take precedence over this property.

LastPageStyle

Gets or sets a System.Windows.Style applied to the last page.

public Style LastPageStyle { get; set; }

Property Value

System.Windows.Style:

A System.Windows.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 System.Windows.Style based on custom logic.

public override Style SelectStyle(object item, DependencyObject container)
Parameter Type Description
item System.Object

The content.

container System.Windows.DependencyObject

The element to which the style will be applied.

Returns

System.Windows.Style:

Returns a System.Windows.Style; otherwise null.

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()