Application.LoadComponent Method
Loads a XAML file that is located at the specified uniform resource identifier (URI).
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
LoadComponent(Uri) | Loads a XAML file that is located at the specified uniform resource identifier (URI), and converts it to an instance of the object that is specified by the root element of the XAML file. |
|
LoadComponent(Object, Uri) | Loads a XAML file that is located at the specified uniform resource identifier (URI) and converts it to an instance of the object that is specified by the root element of the XAML file. |
The XAML file can be an application code file (configured as an Microsoft build engine (MSBuild) Page item) or an application data file (a resource file, content file, or site-of-origin file; see WPF Application Resource, Content, and Data Files).
Thread safety
Application.LoadComponent is not thread safe.
$0See also http://stackoverflow.com/questions/2463822/threading-errors-with-application-loadcomponent-key-already-exists$0
- 3/23/2012
- tho13