Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
LoadContent Method

FrameworkTemplate.LoadContent Method

Loads the content of the template as an instance of an object and returns the root element of the content.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public DependencyObject LoadContent()

Return Value

Type: System.Windows.DependencyObject
The root element of the content. Calling this multiple times returns separate instances.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft