Loads the relevant control template so that its parts can be referenced.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function ApplyTemplate() As System.Boolean |
| C# | |
|---|
public System.bool ApplyTemplate() |
Return Value
Returns whether the visual tree was rebuilt by this call. true indicates the tree was rebuilt; false indicates that the previous visual tree was retained.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also