Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Working with individual XAML elements is useful, but there are occasions when you will need to work directly with the object that hosts the XAML in the browser. Every XAML object supports a getHost method that will return the host object, as shown in Example 9.
function root_Loaded(sender, args) {
var theHost = sender.getHost();
}
|