Microsoft ASP.NET Futures (July 2007): Using the Xaml Control

This sample shows:

  • The Xaml control. The control references a XAML file and a JavaScript library that is used to manipulate the XAML directly.

To run this sample, your browser requires the latest release of Silverlight. If the browser does not have the correct version of Silverlight, the Xaml control automatically renders placeholder UI that the user can click to install Silverlight.

Example 1: Using the Xaml Control

The Xaml control references a XAML file and a client-script library. When the control is rendered, ASP.NET creates a JavaScript class named Custom.Calculator that is bound to the Silverlight host created by the Xaml control. The client class is defined in the Calculator.js library.

Note This is a sample calculator only and does not guarantee accuracy.