Using Inline XAML with Silverlight, Figure 1

Referencing an external XAML file using createObjectEx().

Silverlight.createObjectEx(
  {
      source: "XAML/Simple.xaml",
      parentElement: document.getElementById("slHost"),
      id: "slControl",
      properties:
      { 
         width: "400", 
         height: "200", 
         version: "1.0" 
      },
      events: null
  }
);

comments powered by Disqus

Featured

Subscribe on YouTube