🔹 ControlTemplate Class
namespace Noesis | MSDN
Specifies the visual structure and behavioral aspects of a Control that can be shared across multiple instances of the control.
Properties
| Name | Description |
|---|---|
| ◆ CustomProperties | Gets or sets the list of custom properties defined in this component |
| ◆ 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 |
◆ Dependency Property ◆ Reflection Property
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 |
◆ Dependency Property ◆ Reflection Property
Attached Properties
ControlTemplate has no attached properties
Methods
From FrameworkTemplate
| Name | Description |
|---|---|
| ◆ Apply(FrameworkElement*) | Applies current template to the specified element |
| ◆ FindName(const char*, FrameworkElement*) | Finds the element associated with the specified name defined within this template |
| ◆ FindName(const char*) | Returns an object that has the provided identifying name |
| ◆ FindObject(BaseComponent*) | Finds if element is a named object registered in the template. Returns null if not found |
| ◆ GetAvailableTriggers() | Gets template triggers if available |
| ◆ RegisterName(const char*, BaseComponent*) | Registers the provided name into the current XAML namescope |
| ◆ UnregisterName(const char*) | Unregisters the provided name from the current XAML namescope |
| ◆ UpdateName(const char*, BaseComponent*) | Updates previously registered item with new one. This is required to refresh Binginds when freezables are cloned during animations |
Events
ControlTemplate has no events