partyvorti.blogg.se

Microsoft silverlight plug in
Microsoft silverlight plug in





microsoft silverlight plug in

If you write your own JavaScript code for your application, you must add this code to a different script file. You host this file on your site, and as per the License Agreement, you cannot modify its contents (review the License Agreement in the Silverlight SDK for details). It also provides code to handle the client user experience if the Silverlight control is not present. Silverlight.js: This JavaScript file defines the createObject and createObjectEx methods that you call from CreateSilverlight.js to instantiate the Silverlight control in the HTML page. Because the method parameters change for each application (for instance the name of the source XAML file), each Silverlight-based application typically has a unique CreateSilverlight.js file. Specific parameters passed to createObject (or packaged parameters to createObjectEx) specify the Silverlight plugin's size on the HTML page and reference the XAML markup file that contains the Silverlight UI definition. This method is a template within which you can call the createObject or createObjectEx method, both of which are defined by Silverlight.js. This JavaScript file contains one method with no parameters, called createSilverlight.

microsoft silverlight plug in

Add to the head section of the layout, two scriptsĬreateSilverlight.js: In the Visual Studio templates, this file is named.Under the root folder of your website create a folder called Silverlight, where we put the required silverlight parts.Create a Layout in the Developer center (Silverlight.html).The following example shows how you could use Microsoft Silverlight in your Sitecore sites.







Microsoft silverlight plug in