ControlTemplate Class
Specifies the visual structure and behavioral aspects of a Control that can be shared across multiple instances of the control.
http://msdn.microsoft.com/en-us/library/system.windows.controls.controltemplate.aspx
Methods
From FrameworkTemplate
Name | Description |
---|---|
Apply | Applies current template to the element specified |
CanSeal | Indicates if the current instance can be sealed |
FindName | Finds the element associated with the specified name defined within this template |
FindName | Returns an object that has the provided identifying name |
GetAvailableTriggers | Gets template triggers if available |
IsSealed | Indicates if the current instance is sealed |
RegisterName | Registers the provided name into the current namescope |
Seal | Seals the current instance |
UnregisterName | Unregisters the provided name from the current namescope |
UpdateName | Updates previously registered item with new one. This is usefull to refresh Binginds when freezables are cloned |
Properties
From ControlTemplate
Name | Description | |
---|---|---|
![]() |
TargetType | Gets or sets the type for which this template is intended |
![]() |
Triggers | Gets a collection of TriggerBase objects that apply property changes or perform actions based on specified conditions |


From FrameworkTemplate
Name | Description | |
---|---|---|
![]() |
Resources | Gets or sets the collection of resources that can be used within the scope of this template. |
![]() |
VisualTree | Gets or sets the root node of the template. |


Events
ControlTemplate has no events