Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 3.8 KB

frameworktemplate.md

File metadata and controls

35 lines (22 loc) · 3.8 KB
-api-id -api-type
T:Windows.UI.Xaml.FrameworkTemplate
winrt class

Windows.UI.Xaml.FrameworkTemplate

-description

Creates an element tree of elements. FrameworkTemplate is a base class for classes that have specific templating behavior, including ControlTemplate and DataTemplate.

-remarks

FrameworkTemplate has a ContentPropertyAttribute that indicates that its XAML content property is named "Template". FrameworkTemplate doesn't define a property of that name, nor do its derived types that have a practical usage (ControlTemplate, DataTemplate). The content of a FrameworkTemplate is a root element that should be created when the template is applied to the object being templated, and isn't a conventional property in the object model. Content of a FrameworkTemplate is handled specially by the XAML parser when content is created from a template.

For more info on how to use templates, see ControlTemplate and Quickstart: Control templates.

FrameworkTemplate derived classes

FrameworkTemplate is the parent class for several immediately derived classes that each define specific templating behavior. Here are some of the notable derived classes:

-examples

-see-also

DependencyObject, Control.Template, ControlTemplate, DataTemplate, ItemsPanelTemplate, Quickstart: Control templates