<?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 Drag and Drop API</title>
	<atom:link href="http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/</link>
	<description>About Silverlight, Microsoft technologies, and software development in general.</description>
	<lastBuildDate>Tue, 20 Jul 2010 04:58:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ning Zhang</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-66020</link>
		<dc:creator>Ning Zhang</dc:creator>
		<pubDate>Tue, 20 Jul 2010 04:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-66020</guid>
		<description>&lt;a href=&quot;#comment-63083&quot; rel=&quot;nofollow&quot;&gt;@David Leisner &lt;/a&gt; 
Hi David, 

Yes, the behavior is pretty much the same in SL4 RTM: user will see the standard cursor change at plugin level, ie, if there is one control with AllDrop set to true, the whole plugin will display the allow drop cursor; but it is not control specific, and it is not customizable, ie, cursor won&#039;t change for controls with AllDrop set to false, and there is no DragDropEffects to set in DragEventArgs. We may implement more DnD functionalities in future releases. 

Thanks, 

-Ning</description>
		<content:encoded><![CDATA[<p><a href="#comment-63083" rel="nofollow">@David Leisner </a><br />
Hi David, </p>
<p>Yes, the behavior is pretty much the same in SL4 RTM: user will see the standard cursor change at plugin level, ie, if there is one control with AllDrop set to true, the whole plugin will display the allow drop cursor; but it is not control specific, and it is not customizable, ie, cursor won&#8217;t change for controls with AllDrop set to false, and there is no DragDropEffects to set in DragEventArgs. We may implement more DnD functionalities in future releases. </p>
<p>Thanks, </p>
<p>-Ning</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Leisner</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-63083</link>
		<dc:creator>David Leisner</dc:creator>
		<pubDate>Tue, 22 Jun 2010 19:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-63083</guid>
		<description>Thank you for this extremely useful and easy-to-implement feature!

Question: in your original article you said that in the Silverlight 4 Beta &quot;there is no visual for the dragged object or DragDropEffects.&quot;

Is this also the case in the final Silverlight 4 release?

When dragging an image from Windows Explorer to a Silverlight ListBox, it will be extremely useful to customize the cursor appearance, and also have a different style cursor depending upon whether the target element has AllowDrop enabled or not.

Thanks!</description>
		<content:encoded><![CDATA[<p>Thank you for this extremely useful and easy-to-implement feature!</p>
<p>Question: in your original article you said that in the Silverlight 4 Beta &#8220;there is no visual for the dragged object or DragDropEffects.&#8221;</p>
<p>Is this also the case in the final Silverlight 4 release?</p>
<p>When dragging an image from Windows Explorer to a Silverlight ListBox, it will be extremely useful to customize the cursor appearance, and also have a different style cursor depending upon whether the target element has AllowDrop enabled or not.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spam-dev</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-62398</link>
		<dc:creator>spam-dev</dc:creator>
		<pubDate>Wed, 16 Jun 2010 06:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-62398</guid>
		<description>Hi, thank you for sample code.</description>
		<content:encoded><![CDATA[<p>Hi, thank you for sample code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Grigoleit</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-60904</link>
		<dc:creator>Steven Grigoleit</dc:creator>
		<pubDate>Thu, 03 Jun 2010 14:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-60904</guid>
		<description>Hi,

is it possible to prevent the DataGridDragDropTarget from starting a drag-action?

What I whant is to use one DataGrid only as DragSource and another one only as DropTarget. And the DropTarget-only-DataGrid should not show this &quot;StartDragShadow&quot; when pressing and moving the mouse over an item.

Thanks!
Steven</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>is it possible to prevent the DataGridDragDropTarget from starting a drag-action?</p>
<p>What I whant is to use one DataGrid only as DragSource and another one only as DropTarget. And the DropTarget-only-DataGrid should not show this &#8220;StartDragShadow&#8221; when pressing and moving the mouse over an item.</p>
<p>Thanks!<br />
Steven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silverlight</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-31134</link>
		<dc:creator>silverlight</dc:creator>
		<pubDate>Sat, 26 Dec 2009 05:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-31134</guid>
		<description>&lt;a href=&quot;#comment-27632&quot; rel=&quot;nofollow&quot;&gt;@Rudy  &lt;/a&gt; 
I also want to know.thank you!
regards
silverlight</description>
		<content:encoded><![CDATA[<p><a href="#comment-27632" rel="nofollow">@Rudy  </a><br />
I also want to know.thank you!<br />
regards<br />
silverlight</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ning Zhang</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-30477</link>
		<dc:creator>Ning Zhang</dc:creator>
		<pubDate>Sat, 19 Dec 2009 19:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-30477</guid>
		<description>&lt;a href=&quot;#comment-27632&quot; rel=&quot;nofollow&quot;&gt;@Rudy &lt;/a&gt; 
Please see my other replies. The Silverlight Toolkit already has &lt;a href=&quot;http://silverlight.codeplex.com/SourceControl/changeset/view/35261#779745&quot; rel=&quot;nofollow&quot;&gt;ListBoxDragDropTarget&lt;/a&gt;, so you can drag from ListBox. You do need to implement your own Canvas drag drop target container, for now.</description>
		<content:encoded><![CDATA[<p><a href="#comment-27632" rel="nofollow">@Rudy </a><br />
Please see my other replies. The Silverlight Toolkit already has <a href="http://silverlight.codeplex.com/SourceControl/changeset/view/35261#779745" rel="nofollow">ListBoxDragDropTarget</a>, so you can drag from ListBox. You do need to implement your own Canvas drag drop target container, for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ning Zhang</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-30474</link>
		<dc:creator>Ning Zhang</dc:creator>
		<pubDate>Sat, 19 Dec 2009 18:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-30474</guid>
		<description>&lt;a href=&quot;#comment-29579&quot; rel=&quot;nofollow&quot;&gt;@GB &lt;/a&gt; 
Right now SL4 runtime only supports SL plugin as a file drop target, and only exposes drop target properties (AllDrop) and events (DragEnter/Move/Leave, Drop), but not drag source events (GiveFeedback, QueryContinueDrag). It is not fully extensible via IDataObject either. If you can&#039;t wait, your best chance for now is to look at the toolkit implementation, which allows drag and drop to and from DataGrid within SL plugin. The code is in &lt;a href=&quot;http://silverlight.codeplex.com/SourceControl/changeset/view/35261#778770&quot; rel=&quot;nofollow&quot;&gt;DataGridDragDropTarget.cs&lt;/a&gt; under source\Controls.Data.Toolkit project. Thanks.</description>
		<content:encoded><![CDATA[<p><a href="#comment-29579" rel="nofollow">@GB </a><br />
Right now SL4 runtime only supports SL plugin as a file drop target, and only exposes drop target properties (AllDrop) and events (DragEnter/Move/Leave, Drop), but not drag source events (GiveFeedback, QueryContinueDrag). It is not fully extensible via IDataObject either. If you can&#8217;t wait, your best chance for now is to look at the toolkit implementation, which allows drag and drop to and from DataGrid within SL plugin. The code is in <a href="http://silverlight.codeplex.com/SourceControl/changeset/view/35261#778770" rel="nofollow">DataGridDragDropTarget.cs</a> under source\Controls.Data.Toolkit project. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GB</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-29579</link>
		<dc:creator>GB</dc:creator>
		<pubDate>Mon, 14 Dec 2009 01:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-29579</guid>
		<description>hi, i want to know how to implement to drag&amp;drop on datagrid?</description>
		<content:encoded><![CDATA[<p>hi, i want to know how to implement to drag&amp;drop on datagrid?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rudy</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-27632</link>
		<dc:creator>Rudy</dc:creator>
		<pubDate>Sun, 29 Nov 2009 18:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-27632</guid>
		<description>I would like to know if there are any way to implement drag &amp; drop objects (icons) from list box to canvas?

Regards

Rudy</description>
		<content:encoded><![CDATA[<p>I would like to know if there are any way to implement drag &amp; drop objects (icons) from list box to canvas?</p>
<p>Regards</p>
<p>Rudy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ning Zhang</title>
		<link>http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/comment-page-1/#comment-27472</link>
		<dc:creator>Ning Zhang</dc:creator>
		<pubDate>Sat, 28 Nov 2009 17:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/#comment-27472</guid>
		<description>&lt;a href=&quot;#comment-27450&quot; rel=&quot;nofollow&quot;&gt;@Brice Prunier&lt;/a&gt; 
Yes. &lt;a href=&quot;http://themechanicalbride.blogspot.com&quot;  rel=&quot;nofollow&quot;&gt;Jafar&lt;/a&gt; has implemented almost complete, WPF compatible, drag and drop functionality for both Silverlight 3 and Silverlight 4. It is shipped as part of &lt;a href=&quot;http://silverlight.codeplex.com&quot;  rel=&quot;nofollow&quot;&gt;Silverlight Toolkit&lt;/a&gt;. I highly recommend checking out his &lt;a href=&quot;http://themechanicalbride.blogspot.com/2009/08/new-with-silverlight-toolkit-drag-and.html&quot; rel=&quot;nofollow&quot;&gt;blog posts&lt;/a&gt; for more information. 

&lt;p&gt;Please notice a key differences between the two drag and drop implementations: the Toolkit version is implemented on top of runtime, so it requires a *DragDropTarget container, and works only between elements within a Silverlight plugin control. The Toolkit implementation leverages runtime drag and drop API when it can, like in Silverlight 4 Toolkit, Microsoft.Windows.DragDrop.AllowDrop uses UIElement.AllowDrop property. While the runtime exposes drop target events for all UIElement, the Toolkit implementation already handles those events for important controls like DataGrid, ListBox and TreeView, so it is really easy to use. We&#039;ve made sure the APIs are as compatible as possible, so people can use both together for now, and migrate to runtime implementation rather easily as runtime exposes more drag and drop functionalities. This is also the general approach of Silverlight Toolkit, as I called out in earlier post &lt;a href=&quot;http://www.ningzhang.org/2009/01/24/silverlight-controls/&quot; rel=&quot;nofollow&quot;&gt;Silverlight Controls&lt;/a&gt;. &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-27450" rel="nofollow">@Brice Prunier</a><br />
Yes. <a href="http://themechanicalbride.blogspot.com"  rel="nofollow">Jafar</a> has implemented almost complete, WPF compatible, drag and drop functionality for both Silverlight 3 and Silverlight 4. It is shipped as part of <a href="http://silverlight.codeplex.com"  rel="nofollow">Silverlight Toolkit</a>. I highly recommend checking out his <a href="http://themechanicalbride.blogspot.com/2009/08/new-with-silverlight-toolkit-drag-and.html" rel="nofollow">blog posts</a> for more information. </p>
<p>Please notice a key differences between the two drag and drop implementations: the Toolkit version is implemented on top of runtime, so it requires a *DragDropTarget container, and works only between elements within a Silverlight plugin control. The Toolkit implementation leverages runtime drag and drop API when it can, like in Silverlight 4 Toolkit, Microsoft.Windows.DragDrop.AllowDrop uses UIElement.AllowDrop property. While the runtime exposes drop target events for all UIElement, the Toolkit implementation already handles those events for important controls like DataGrid, ListBox and TreeView, so it is really easy to use. We&#8217;ve made sure the APIs are as compatible as possible, so people can use both together for now, and migrate to runtime implementation rather easily as runtime exposes more drag and drop functionalities. This is also the general approach of Silverlight Toolkit, as I called out in earlier post <a href="http://www.ningzhang.org/2009/01/24/silverlight-controls/" rel="nofollow">Silverlight Controls</a>. </p>
]]></content:encoded>
	</item>
</channel>
</rss>
