Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Page.Template Property

 

Gets or sets the control template for a Page.

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

public ControlTemplate Template { get; set; }

<object Template="{resourceExtension styleResourceKey}"/>

resourceExtension

A markup extension that identifies how to reference the template resource, either StaticResource or DynamicResource. See XAML Resources.

styleResourceKey

The key that identifies the requested template selector. The key refers to an existing resource in a ResourceDictionary.

System_CAPS_noteNote

Property element syntax is technically possible, but not recommended. For more information, see Inline Styles and Templates.

Identifier field

TemplateProperty

Metadata properties set to true

AffectsMeasure

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft