Load XAML content from a URL

Hi,

I have created a simple HTML with a simple WPF/E control as demonstrated in the SDK. If I create the agHost object with a path relative to the HTML as the source for the XAML content all works fine (as in the samples). If I pass instead a full URL the XAML content is not loaded.

How can I load XAML content which is not located relatively to the the HTML file (like on a different server)

Thanks,

Keren




Answer this question

Load XAML content from a URL

  • cconrad

    Hi,

    As far as know XmlHTTP request on the client side will work only for XML files located on the same domain. I need to load tne XAML from a different domain. Is that possible

    Thanks,

    Keren



  • Christer Claesson

    Not that I know of. You'll have to proxy the content through a server on your domain.

    -mark
    Program Manager
    Microsoft
    This post is provided "as-is"


  • bryanedds

    You have to get the XAML (which is just xML) via an XmlHTTP Request to download your XAML then you can use createFromXaml. Currently there isn't a way to have the aghost/root take a URL/URI to load from.

    -mark
    Program Manager
    Microsoft
    This post is provided "as-is"


  • Load XAML content from a URL