Application.LoadComponent
method loads a XML file that is located at a given Uri.
The code snippet in
Listing 1 uses Application.LoadComponent method to load SecondWindow.xaml.
object
comp = Application.LoadComponent(
new Uri("SecondWindow.xaml",
System.UriKind.RelativeOrAbsolute));
Listing 1