DocumentViewerBase.IsMasterPage Attached Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value that indicates whether or not a child element in the viewer should be used as a master page.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

See GetIsMasterPage, SetIsMasterPage

Property Value

Type: System.Boolean

true if the associated element should be used as the master page; otherwise, false.

This property has no default value.

This attached property is used to indicate which DocumentPageView in the PageViews collection represents master page. The master page corresponds to the page that is currently active (being displayed) in the viewer.

Typically, no more than one member of the PageViews collection is marked as the master page. If more than one member of the PageViews collection is marked as the master page, then the first indicated DocumentPageView in the logical tree (depth-first) is designated the active master. If no members of the PageViews collection are marked as the master page, then the master page defaults to the first member of the PageViews collection.

Use the SetIsMasterPage method to set and attach this property to a specified element (dependency object). Use the GetIsMasterPage method to read the value of this attached property from a specified element.

Identifier field

IsMasterPageProperty

Metadata properties set to true

None

Return to top
Show: