Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Solution for Cross-Domain requests RSS

11 replies

Last post Mar 11, 2008 11:48 PM by MarkRiemann

(1)
  • BeSilver

    BeSilver

    Member

    76 Points

    38 Posts

    Re: Solution for Cross-Domain requests

    Mar 11, 2008 11:38 PM | LINK

    MarkRiemann

    Any way this code could be altered to grab any type of file (binary/non-binary) with the support for cross-domain? 

    Which kind of binary content are you looking for? I'm asking because there are special ways for e.g. loading images and binding them to Silverlight controls:

    string src = "image1.jpg";
    img.Source = new Uri(src, UriKind.Relative);

    So chances are, you might want to implement different methods for different types of conternt. (Could be a good idea for an open source library project. :-) )

    ------------------------
    blogging @ www.24100.net
  • MarkRiemann

    MarkRiemann

    Member

    97 Points

    69 Posts

    Re: Solution for Cross-Domain requests

    Mar 11, 2008 11:48 PM | LINK

    well images and videos are handled already in SL2 for cross-domains, I believe.

     I was thinking more of custom fonts (ttf files) Font.Source. Which is not supported for cross-domain with WebClient.