使用CreateFromXamlDownloader方法:
// Create the event handler for the Completed event.
function onCompleted(sender, eventArgs)
{
// Retrieve a reference to the plug-in.
var slPlugin = sender.getHost();
// Retrieve the specified XAML file from the packaged downloader content,
// and create an object reference.
var xamlFragment = slPlugin.content.createFromXamlDownloader(sender, "OK_button.xaml");
// Add the XAML object as a child of the root Canvas object.
var root = sender.findName("rootCanvas");
root.children.add(xamlFragment);
}