Assuming you have page1.xaml and page2.xaml, and a javascript file
you would use the downloader object to call you 2nd xaml file, then use the CreatefromXaml() method to add it into your main canvas on page1.xaml
javscript would be something like this:
//page1.xaml main canvas has a loaded="downloadPage2Xaml"
function downloadPage2Xaml (sender, eventArgs)
{
var downloader = this.control.createObject("downloader");
downloader.addEventListener("completed", Silverlight.createDelegate(this, this.downloadPage2rCompleted));
downloader.open("GET", "page2.xaml");
downloader.send();
}
function downloadPage2Completed (sender, eventArgs)
{
var xamlHeader = sender.getResponseText("");
this.rootHeader.children.clear();
var header = this.control.content.createFromXaml(xamlHeader, true);
this.rootHeader.children.add(header);
}
Greg
www.GJHDigital.com