DocumentViewerBase.IsMasterPage Attached Property

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
<object DocumentViewerBase.IsMasterPage="bool" .../>

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.

Identifier field


Metadata properties set to true


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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft