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
Most   Popular
Upcoming Events

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.