Gets or sets the type for which this ControlTemplate is intended.
Assembly: PresentationFramework (in PresentationFramework.dll)
If you have a standalone ControlTemplate in the resources section with the property set to a type, the ControlTemplate does not get applied to that type automatically. Instead, you need to specify an x:Key and apply the template explicitly.
Legacy Code Example
The following example demonstrates the use of this property:Code snippet is not found. Confirm that the code snippet name 'ControlTemplateExamples' is correct.
The above example uses the following resource:Code snippet is not found. Confirm that the code snippet name 'ControlTemplateExamples' is correct.
For the complete sample, see Styling with ControlTemplates Sample.
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0