none
Using "createObject()", SL content isn't shown

    Question

  • Hello, is that my page (html code) I've added a block of js code that creates and displays Silverlight content, as shown in the following code:

    Silverlight.createObjectEx({
            source: "MainPage.xaml",
            parentElement: document.getElementById("silverlightpluginhost"),
            id: "slplugin",
            properties: {
              width: "100%",
              height: "100%",
              background: "white"
            },
            events: {
              onLoad: handleLoad
            },
            context: null
          });



    But when i load the page in the webbrowser, only is displayed the html object but not the SL content (for example: an ellipse and a button) which the XAML contains.

    Regards

    Monday, June 20, 2011 7:08 AM

Answers

All replies