<?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: Silverlight 4 Beta &#8211; Using Silverlight as Drop Target</title>
	<atom:link href="http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/</link>
	<description></description>
	<lastBuildDate>Wed, 10 Mar 2010 19:57:20 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian Lagunas</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-52350</link>
		<dc:creator>Brian Lagunas</dc:creator>
		<pubDate>Sun, 03 Jan 2010 22:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-52350</guid>
		<description>Well, I can&#039;t really tell you what the problem is without seeing your code. Just make sure you are not trying to drop into a container control, like a grid, without setting a background color. If you try to drop into a grid, you would have to drop it exactly on the edge which is very difficult to do. Try it with a button, if it works with a button, then you are not doing something quite right. Also, make sure your application is targeting the correct framework. Also, check your output window to check for any errors that may be occuring.</description>
		<content:encoded><![CDATA[<p>Well, I can&#8217;t really tell you what the problem is without seeing your code. Just make sure you are not trying to drop into a container control, like a grid, without setting a background color. If you try to drop into a grid, you would have to drop it exactly on the edge which is very difficult to do. Try it with a button, if it works with a button, then you are not doing something quite right. Also, make sure your application is targeting the correct framework. Also, check your output window to check for any errors that may be occuring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-52345</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Sun, 03 Jan 2010 21:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-52345</guid>
		<description>Any advice would be appreciated, I took the code you presented here and put it in a brand new SL4 application, but under no circumstances could I drop a file into the running app.  I am facing the exact same problem with the example from Jesse Liberty- same code as presented, tried regular and OOB, but regardless I cannot drop a file into my SL app. 

Any recommendations? :)</description>
		<content:encoded><![CDATA[<p>Any advice would be appreciated, I took the code you presented here and put it in a brand new SL4 application, but under no circumstances could I drop a file into the running app.  I am facing the exact same problem with the example from Jesse Liberty- same code as presented, tried regular and OOB, but regardless I cannot drop a file into my SL app. </p>
<p>Any recommendations? <img src='http://elegantcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micha? Jaskólski &#187; Silverlight 4</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-51060</link>
		<dc:creator>Micha? Jaskólski &#187; Silverlight 4</dc:creator>
		<pubDate>Sun, 06 Dec 2009 17:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-51060</guid>
		<description>[...] API przeci?gnij i upu??. [...]</description>
		<content:encoded><![CDATA[<p>[...] API przeci?gnij i upu??. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Lagunas</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-50994</link>
		<dc:creator>Brian Lagunas</dc:creator>
		<pubDate>Fri, 04 Dec 2009 15:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-50994</guid>
		<description>&lt;a href=&quot;#comment-50948&quot; rel=&quot;nofollow&quot;&gt;@Dan Fell &lt;/a&gt; 

Well, getting mail items from Outlook isn&#039;t as easy as one might think.  In WPF land I use Microsoft.Office.Interop.Outlook to accomplish this task:

ApplicationClass app = new ApplicationClass();
Selection sel = app.ActiveExplorer().Selection;
string path = @&quot;c:\DroppedMessages\&quot;;
foreach (object mitem in sel)
{
     MailItem mi = (MailItem)mitem;
     string fileName = string.Format(&quot;{0}{1}.msg&quot;, path,
                                   mi.Subject.Replace(&quot;:&quot;, &quot;&quot;));
     mi.SaveAs(fileName, OlSaveAsType.olMSG);
}

I haven&#039;t tried this in Silverlight yet, but just to get a list of file names of mail items without using interop assemblies you would have to do this.

Stream fileContentNames = (Stream)e.Data.GetData(&quot;FileGroupDescriptor&quot;);
byte[] fileContentNameBytes = new byte[fileContentNames.Length];
fileContentNames.Read(fileContentNameBytes, 0,
                      fileContentNameBytes.Length);
fileContentNames.Close();

StringBuilder fileName = new StringBuilder(&quot;&quot;);
            
for (int i = 76; fileContentNameBytes[i] != 0; i  )
{
     fileName.Append(Convert.ToChar(fileContentNameBytes[i]));
}

Now getting the actual contents fo the mail message is a whole other story.  Good luck.</description>
		<content:encoded><![CDATA[<p><a href="#comment-50948" rel="nofollow">@Dan Fell </a> </p>
<p>Well, getting mail items from Outlook isn&#8217;t as easy as one might think.  In WPF land I use Microsoft.Office.Interop.Outlook to accomplish this task:</p>
<p>ApplicationClass app = new ApplicationClass();<br />
Selection sel = app.ActiveExplorer().Selection;<br />
string path = @&#8221;c:\DroppedMessages\&#8221;;<br />
foreach (object mitem in sel)<br />
{<br />
     MailItem mi = (MailItem)mitem;<br />
     string fileName = string.Format(&#8221;{0}{1}.msg&#8221;, path,<br />
                                   mi.Subject.Replace(&#8221;:&#8221;, &#8220;&#8221;));<br />
     mi.SaveAs(fileName, OlSaveAsType.olMSG);<br />
}</p>
<p>I haven&#8217;t tried this in Silverlight yet, but just to get a list of file names of mail items without using interop assemblies you would have to do this.</p>
<p>Stream fileContentNames = (Stream)e.Data.GetData(&#8221;FileGroupDescriptor&#8221;);<br />
byte[] fileContentNameBytes = new byte[fileContentNames.Length];<br />
fileContentNames.Read(fileContentNameBytes, 0,<br />
                      fileContentNameBytes.Length);<br />
fileContentNames.Close();</p>
<p>StringBuilder fileName = new StringBuilder(&#8221;");</p>
<p>for (int i = 76; fileContentNameBytes[i] != 0; i  )<br />
{<br />
     fileName.Append(Convert.ToChar(fileContentNameBytes[i]));<br />
}</p>
<p>Now getting the actual contents fo the mail message is a whole other story.  Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Fell</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-50948</link>
		<dc:creator>Dan Fell</dc:creator>
		<pubDate>Thu, 03 Dec 2009 14:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-50948</guid>
		<description>I&#039;ve got the remove image working but really I&#039;m looking to drag emails from Outlook and capture them in a Silverlight control in a similar fashion to what is happening in your article. I&#039;ve tried a few things but it will only allow the drag and drop from a .msg file on the file system rather than from Outlook itself. 

Any thoughts?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got the remove image working but really I&#8217;m looking to drag emails from Outlook and capture them in a Silverlight control in a similar fashion to what is happening in your article. I&#8217;ve tried a few things but it will only allow the drag and drop from a .msg file on the file system rather than from Outlook itself. </p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Fell</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-50944</link>
		<dc:creator>Dan Fell</dc:creator>
		<pubDate>Thu, 03 Dec 2009 12:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-50944</guid>
		<description>I&#039;ve been playing with this code and it&#039;s great! We&#039;ve been after a drag target solution for a while and this could well be it.

I&#039;m currently looking at extending this further to include file info on the objects added and also a remove function although i&#039;m currently stuck on that bit...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been playing with this code and it&#8217;s great! We&#8217;ve been after a drag target solution for a while and this could well be it.</p>
<p>I&#8217;m currently looking at extending this further to include file info on the objects added and also a remove function although i&#8217;m currently stuck on that bit&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-50900</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Wed, 02 Dec 2009 16:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-50900</guid>
		<description>It is possible to drag and drop image from silverlight to file system?</description>
		<content:encoded><![CDATA[<p>It is possible to drag and drop image from silverlight to file system?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #483</title>
		<link>http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/comment-page-1/#comment-50635</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #483</dc:creator>
		<pubDate>Tue, 24 Nov 2009 10:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/11/23/silverlight-4-beta-using-silverlight-as-drop-target/#comment-50635</guid>
		<description>[...] Silverlight 4 Beta - Using Silverlight as Drop Target - Brian Lagunas looks at using a Silverlight application as a target for drag and drop operations, allowing you to drag files into the application and have it process it. Brian provides source for this Silverlight 4 Beta sample, and also discusses a neat UI features for Text Trimming [...]</description>
		<content:encoded><![CDATA[<p>[...] Silverlight 4 Beta &#8211; Using Silverlight as Drop Target &#8211; Brian Lagunas looks at using a Silverlight application as a target for drag and drop operations, allowing you to drag files into the application and have it process it. Brian provides source for this Silverlight 4 Beta sample, and also discusses a neat UI features for Text Trimming [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
