<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Display Images with the Silverlight Downloader in Alpha 1.1</title>
	<atom:link href="http://peterkellner.net/2007/07/03/silverlightdownloader/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net/2007/07/03/silverlightdownloader/</link>
	<description>Specializing in Microsoft Web and Database Technologies</description>
	<lastBuildDate>Sat, 13 Mar 2010 17:00:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: on line health care coverage broker</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-24877</link>
		<dc:creator>on line health care coverage broker</dc:creator>
		<pubDate>Sun, 07 Jun 2009 05:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-24877</guid>
		<description>&lt;strong&gt;on line health care coverage broker...&lt;/strong&gt;

earthquakes,partisan commercials ...</description>
		<content:encoded><![CDATA[<p><strong>on line health care coverage broker&#8230;</strong></p>
<p>earthquakes,partisan commercials &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sander</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-644</link>
		<dc:creator>Sander</dc:creator>
		<pubDate>Wed, 28 May 2008 11:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-644</guid>
		<description>I didn&#039;t like the idea of opening up a proxy on my server, so I&#039;ve worked around this. It turns out that after loading an image through HTML, it&#039;s available like any local resource. This means you can dynamically add a new HTML  tag, wait until it&#039;s loaded, then use it in a Silverlight Image. Here&#039;s what it looks like:

img = System.Windows.Browser.HtmlPage.Document.CreateElement(&quot;img&quot;);

System.Windows.Browser.HtmlPage.Document.Body.AppendChild(img);

img.AttachEvent(&quot;onload&quot;, ImageLoaded);
img.SetStyleAttribute(&quot;visibility&quot;, &quot;hidden&quot;); // hide the
img.SetAttribute(&quot;height&quot;, &quot;0&quot;); // required
img.SetAttribute(&quot;width&quot;, &quot;0&quot;); // required
img.SetAttribute(&quot;id&quot;, &quot;tempdownloader&quot;);
img.SetAttribute(&quot;src&quot;, &quot;http://hirise-pds.lpl.arizona.edu/PDS/EXTRAS/RDR/TRA/ORB_000800_000899/TRA_000873_1780/TRA_000873_1780_RED.NOMAP.browse.jpg&quot;);

... and the callback:

private void ImageLoaded(object source, System.Windows.Browser.HtmlEventArgs e)
{
    MyImage.SetValue(Image.SourceProperty, (source as HtmlElement).GetAttribute(&quot;src&quot;));
}</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t like the idea of opening up a proxy on my server, so I&#8217;ve worked around this. It turns out that after loading an image through HTML, it&#8217;s available like any local resource. This means you can dynamically add a new HTML  tag, wait until it&#8217;s loaded, then use it in a Silverlight Image. Here&#8217;s what it looks like:</p>
<p>img = System.Windows.Browser.HtmlPage.Document.CreateElement(&#8220;img&#8221;);</p>
<p>System.Windows.Browser.HtmlPage.Document.Body.AppendChild(img);</p>
<p>img.AttachEvent(&#8220;onload&#8221;, ImageLoaded);<br />
img.SetStyleAttribute(&#8220;visibility&#8221;, &#8220;hidden&#8221;); // hide the<br />
img.SetAttribute(&#8220;height&#8221;, &#8220;0&#8243;); // required<br />
img.SetAttribute(&#8220;width&#8221;, &#8220;0&#8243;); // required<br />
img.SetAttribute(&#8220;id&#8221;, &#8220;tempdownloader&#8221;);<br />
img.SetAttribute(&#8220;src&#8221;, &#8220;http://hirise-pds.lpl.arizona.edu/PDS/EXTRAS/RDR/TRA/ORB_000800_000899/TRA_000873_1780/TRA_000873_1780_RED.NOMAP.browse.jpg&#8221;);</p>
<p>&#8230; and the callback:</p>
<p>private void ImageLoaded(object source, System.Windows.Browser.HtmlEventArgs e)<br />
{<br />
    MyImage.SetValue(Image.SourceProperty, (source as HtmlElement).GetAttribute(&#8220;src&#8221;));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natasha</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-646</link>
		<dc:creator>Natasha</dc:creator>
		<pubDate>Sun, 11 May 2008 19:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-646</guid>
		<description>I have found two interesting sources and would like to give the benefit of my experience to you.
I am tuning  my pc by the best software for free, with the file search engine http://fileshunt.com and http://filesfinds.com May be you have your own experience and could give some useful sites too. Because this two social sites help me much.</description>
		<content:encoded><![CDATA[<p>I have found two interesting sources and would like to give the benefit of my experience to you.<br />
I am tuning  my pc by the best software for free, with the file search engine <a href="http://fileshunt.com">http://fileshunt.com</a> and <a href="http://filesfinds.com">http://filesfinds.com</a> May be you have your own experience and could give some useful sites too. Because this two social sites help me much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Roussel</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-645</link>
		<dc:creator>Marc Roussel</dc:creator>
		<pubDate>Sun, 17 Feb 2008 13:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-645</guid>
		<description>Hi,

I have multiple images on my page.  I&#039; using the downloader in C# so I can download IMAGE per IMAGE.  That means, I&#039;m trying to download an image and add it to another xaml (Object instantiated that containt an Image object)

The problem is that when I issue the Send() for each image,  I just get the last one because it gets in the Completed event only at the last image.  I don&#039;t understand this behavior.

Anybody can help on this ?

See this thread for more info :
http://silverlight.net/forums/t/9916.aspx

Thank you</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have multiple images on my page.  I&#8217; using the downloader in C# so I can download IMAGE per IMAGE.  That means, I&#8217;m trying to download an image and add it to another xaml (Object instantiated that containt an Image object)</p>
<p>The problem is that when I issue the Send() for each image,  I just get the last one because it gets in the Completed event only at the last image.  I don&#8217;t understand this behavior.</p>
<p>Anybody can help on this ?</p>
<p>See this thread for more info :<br />
<a href="http://silverlight.net/forums/t/9916.aspx">http://silverlight.net/forums/t/9916.aspx</a></p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kellner</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-643</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Mon, 31 Dec 2007 15:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-643</guid>
		<description>Hi Andrew,

I wish I knew javascript better.  I struggled for a long time trying to figure out how to get the data passed and my encoding mechanism does not feel like a good solution, but it does work and it was the best I could come up with.  If you write up a better way, I&#039;ll be happy to blog about and point to your solution.</description>
		<content:encoded><![CDATA[<p>Hi Andrew,</p>
<p>I wish I knew javascript better.  I struggled for a long time trying to figure out how to get the data passed and my encoding mechanism does not feel like a good solution, but it does work and it was the best I could come up with.  If you write up a better way, I&#8217;ll be happy to blog about and point to your solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Arnott</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-642</link>
		<dc:creator>Andrew Arnott</dc:creator>
		<pubDate>Mon, 31 Dec 2007 04:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-642</guid>
		<description>Apologies... it looks like ASP.NET (arguably incorrectly) decodes the amperstand before splitting the variables, so the URL&#039;s variables are split up instead of remaining with the single var.</description>
		<content:encoded><![CDATA[<p>Apologies&#8230; it looks like ASP.NET (arguably incorrectly) decodes the amperstand before splitting the variables, so the URL&#8217;s variables are split up instead of remaining with the single var.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Arnott</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-641</link>
		<dc:creator>Andrew Arnott</dc:creator>
		<pubDate>Mon, 31 Dec 2007 04:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-641</guid>
		<description>Why are you inventing your own encoding mechanism?  You can use Javascript&#039;s escape() function on the client, and then ASP.NET will automatically decode it (internally using HttpUtility.UrlDecode) for you just by calling Request.QueryString[&quot;somevar&quot;].
In fact, the encoding done by the escape function is the &quot;right&quot; way to do it according to the URL spec.</description>
		<content:encoded><![CDATA[<p>Why are you inventing your own encoding mechanism?  You can use Javascript&#8217;s escape() function on the client, and then ASP.NET will automatically decode it (internally using HttpUtility.UrlDecode) for you just by calling Request.QueryString["somevar"].<br />
In fact, the encoding done by the escape function is the &#8220;right&#8221; way to do it according to the URL spec.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin-Josef Angel [MVP]</title>
		<link>http://peterkellner.net/2007/07/03/silverlightdownloader/comment-page-1/#comment-640</link>
		<dc:creator>Justin-Josef Angel [MVP]</dc:creator>
		<pubDate>Mon, 16 Jul 2007 10:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2007/07/03/silverlightdownloader/#comment-640</guid>
		<description>That&#039;s a great solution, good job.

In your opinion should we compensate for the lack of Classes/framework/&quot;Options&quot; in the silverlight CLR by transfering work the server which has an fully-blown .Net CLR &amp; Framework?
Do you consider this a viable solution?</description>
		<content:encoded><![CDATA[<p>That&#8217;s a great solution, good job.</p>
<p>In your opinion should we compensate for the lack of Classes/framework/&#8221;Options&#8221; in the silverlight CLR by transfering work the server which has an fully-blown .Net CLR &amp; Framework?<br />
Do you consider this a viable solution?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
