XAML

Example to have some XAML graphs displayed in some topics and having them in a vector format the user can see without having to install additional plugins (as needed for SVGs). I guess anybody reading a help file about code using WPF/XAML/Silverlight has it installed already and is able to see it.

 

function createSilverlightEx()
{  
    Silverlight.createObjectEx({
        source: '#xamlContent',         // Source property value, referencing an ID in the HTML DOM.
        parentElement:parentElement,    // DOM reference to hosting DIV tag.
        id:'myPlugin',                  // Unique plug-in ID value.
        properties:{                    // Plug-in properties.
            width:'360',                // Width of rectangular region of plug-in, in pixels.
            height:'60',                // Height of rectangular region of plug-in, in pixels.
            background:'oldlace',       // Background color of plug-in.
            version:'1.0'},             // Plug-in version.
        events:{
            onLoad:null}});             // OnLoad property value -- event handler function name.
}