Page.Template 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 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: