<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Silverlight 2.0 In Examples: Part ? Drag and Drop Inside Out</title>
	<atom:link href="http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/feed/" rel="self" type="application/rss+xml" />
	<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/</link>
	<description>Programming theory, software development process, Silverlight, WPF</description>
	<lastBuildDate>Fri, 15 Apr 2011 22:15:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Eduardo</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-46</link>
		<dc:creator><![CDATA[Eduardo]]></dc:creator>
		<pubDate>Thu, 03 Sep 2009 14:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-46</guid>
		<description><![CDATA[Great man,
Thanks!

You are de first who used the events on the Grid &quot;LayoutRoot&quot;. I see many peoples who used the events on the objects and not maked the test on the function
&quot;  foreach (UIElement element in elements)
    {

        if (element is Ellipse)&quot;

	
I was looking for this. I will make an example based on your&#039;s post in my blog(Portuguese).]]></description>
		<content:encoded><![CDATA[<p>Great man,<br />
Thanks!</p>
<p>You are de first who used the events on the Grid &#8220;LayoutRoot&#8221;. I see many peoples who used the events on the objects and not maked the test on the function<br />
&#8221;  foreach (UIElement element in elements)<br />
    {</p>
<p>        if (element is Ellipse)&#8221;</p>
<p>I was looking for this. I will make an example based on your&#8217;s post in my blog(Portuguese).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dykin's me2DAY</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-42</link>
		<dc:creator><![CDATA[dykin's me2DAY]]></dc:creator>
		<pubDate>Mon, 11 May 2009 14:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-42</guid>
		<description><![CDATA[&lt;strong&gt;리거니의 생각...&lt;/strong&gt;

Silverlight 2.0 In Examples: Part ? Drag and Drop Inside Out « Nick Polyak’s Software Blog(고급)...]]></description>
		<content:encoded><![CDATA[<p><strong>리거니의 생각&#8230;</strong></p>
<p>Silverlight 2.0 In Examples: Part ? Drag and Drop Inside Out « Nick Polyak’s Software Blog(고급)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: npolyak</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-41</link>
		<dc:creator><![CDATA[npolyak]]></dc:creator>
		<pubDate>Tue, 31 Mar 2009 06:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-41</guid>
		<description><![CDATA[Hi MavashiKid,
thanks for your remarks. I am a little out of date on my blog matters because I am working on a big Silverlight project.
Can you send an ftp or http url to download your code that does not work. I can try to figure out what is wrong.
Concerning the code update - I&#039;ll try to post it within a week or two.]]></description>
		<content:encoded><![CDATA[<p>Hi MavashiKid,<br />
thanks for your remarks. I am a little out of date on my blog matters because I am working on a big Silverlight project.<br />
Can you send an ftp or http url to download your code that does not work. I can try to figure out what is wrong.<br />
Concerning the code update &#8211; I&#8217;ll try to post it within a week or two.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MawashiKid</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-40</link>
		<dc:creator><![CDATA[MawashiKid]]></dc:creator>
		<pubDate>Sun, 29 Mar 2009 23:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-40</guid>
		<description><![CDATA[Hi,

I&#039;ve tested your code, very interesting indeed...
I had to make some minor modifications in the code though.
As Rob Gibson said, the function HitTest is no longer supported by the Silverlight 2 RTM version (and the Silverlight 3 Beta also...)
so we have to use VisualTreeHelper class instead.

Example: In the SimpleDragAndDrop application the following line:

void LayoutRoot_MouseLeftButton(object sender, MouseButtonEventArgs e)
{ 
   List element = (List)this.HitTest(e.GetPosition(null)); .... 
 
 will generate an error with Silverlight 2 RTM version
 and should therefore be replace with:

void LayoutRoot_MouseLeftButton(object sender, MouseButtonEventArgs e)
{ 
   IEnumerable elements = VisualTreeHelper.FindElementsInHostCoordinates(e.GetPosition(null), this);

in order to run properly.

I&#039;ve also made the same type of modifications in the ListDragAndDrop application so that 
the code no longer generates any errors during compilation. However when I run
the ListDragAndDrop application, the elements in the listbox &quot;Box1&quot; just won&#039;t respond to any behaviour...  Strange...

I&#039;m sure that any update of your code would be very much appreciated.
Thank you and keep on your ggod work.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve tested your code, very interesting indeed&#8230;<br />
I had to make some minor modifications in the code though.<br />
As Rob Gibson said, the function HitTest is no longer supported by the Silverlight 2 RTM version (and the Silverlight 3 Beta also&#8230;)<br />
so we have to use VisualTreeHelper class instead.</p>
<p>Example: In the SimpleDragAndDrop application the following line:</p>
<p>void LayoutRoot_MouseLeftButton(object sender, MouseButtonEventArgs e)<br />
{<br />
   List element = (List)this.HitTest(e.GetPosition(null)); &#8230;. </p>
<p> will generate an error with Silverlight 2 RTM version<br />
 and should therefore be replace with:</p>
<p>void LayoutRoot_MouseLeftButton(object sender, MouseButtonEventArgs e)<br />
{<br />
   IEnumerable elements = VisualTreeHelper.FindElementsInHostCoordinates(e.GetPosition(null), this);</p>
<p>in order to run properly.</p>
<p>I&#8217;ve also made the same type of modifications in the ListDragAndDrop application so that<br />
the code no longer generates any errors during compilation. However when I run<br />
the ListDragAndDrop application, the elements in the listbox &#8220;Box1&#8243; just won&#8217;t respond to any behaviour&#8230;  Strange&#8230;</p>
<p>I&#8217;m sure that any update of your code would be very much appreciated.<br />
Thank you and keep on your ggod work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: npolyak</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-38</link>
		<dc:creator><![CDATA[npolyak]]></dc:creator>
		<pubDate>Fri, 06 Mar 2009 04:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-38</guid>
		<description><![CDATA[Actually, re-reading your comment more carefully, apparently you are using the VSM to expand and shrink each item. VisualStateManager can be controlled programmatically.
Basically you can get the VisualStateGroups from the visual state manager and then states from the groups and then you can get a needed storyboard from the state. Then, you can probably run the story board whenever you need by using Begin method. 
Examples of getting the visual states programmatically can be found at http://silverlight.net/forums/p/17802/60387.aspx.
Again I&#039;ll be able to say more if I have the code.]]></description>
		<content:encoded><![CDATA[<p>Actually, re-reading your comment more carefully, apparently you are using the VSM to expand and shrink each item. VisualStateManager can be controlled programmatically.<br />
Basically you can get the VisualStateGroups from the visual state manager and then states from the groups and then you can get a needed storyboard from the state. Then, you can probably run the story board whenever you need by using Begin method.<br />
Examples of getting the visual states programmatically can be found at <a href="http://silverlight.net/forums/p/17802/60387.aspx" rel="nofollow">http://silverlight.net/forums/p/17802/60387.aspx</a>.<br />
Again I&#8217;ll be able to say more if I have the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: npolyak</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-37</link>
		<dc:creator><![CDATA[npolyak]]></dc:creator>
		<pubDate>Fri, 06 Mar 2009 03:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-37</guid>
		<description><![CDATA[Hey Jim,
apparently for some reason MouseLeave event does not fire. You can probably add the shrinking functionality to DoDrop function. 
If you send me your code, I&#039;ll be happy to try to figure it out.]]></description>
		<content:encoded><![CDATA[<p>Hey Jim,<br />
apparently for some reason MouseLeave event does not fire. You can probably add the shrinking functionality to DoDrop function.<br />
If you send me your code, I&#8217;ll be happy to try to figure it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-36</link>
		<dc:creator><![CDATA[Jim]]></dc:creator>
		<pubDate>Thu, 05 Mar 2009 21:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-36</guid>
		<description><![CDATA[Very nice job. Well commented and the article was very clear. Thanks, it taught me a lot. I’m new to Silverlight and did run into something I just can’t figure out. I’m using the GenericDragDropLib for copying items from one list box to others. I have a control template for my list items that basically makes the items magnify when the mouse moves over them (CommonStates MouseOver). When an item gets dragged the source (original) item does not shrink down when the mouse leaves with the dragging copy. It’s like the item does not change states when the mouse is no longer over the item. I have to run the mouse over it again after the drop and it restores.

Any ideas?]]></description>
		<content:encoded><![CDATA[<p>Very nice job. Well commented and the article was very clear. Thanks, it taught me a lot. I’m new to Silverlight and did run into something I just can’t figure out. I’m using the GenericDragDropLib for copying items from one list box to others. I have a control template for my list items that basically makes the items magnify when the mouse moves over them (CommonStates MouseOver). When an item gets dragged the source (original) item does not shrink down when the mouse leaves with the dragging copy. It’s like the item does not change states when the mouse is no longer over the item. I have to run the mouse over it again after the drop and it restores.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: npolyak</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-17</link>
		<dc:creator><![CDATA[npolyak]]></dc:creator>
		<pubDate>Mon, 05 Jan 2009 02:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-17</guid>
		<description><![CDATA[Sorry, i have not had time to update my blog recently. 
Thanks for figuring it out!]]></description>
		<content:encoded><![CDATA[<p>Sorry, i have not had time to update my blog recently.<br />
Thanks for figuring it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-16</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Sun, 04 Jan 2009 21:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-16</guid>
		<description><![CDATA[I got the same error when attempting to initiate a drag operation.  It&#039;s because the the template was not being applied so your DragDropPopup was never being initialized (since OnApplyTemplate was never called) and that&#039;s what leads to the null reference exception on the DragDropPopup.IsOpen line.

The solution is to move the generic.xaml file that&#039;s contained in the GenericDragDropLib project into a new sub-folder called Themes as required by the final version of SL.]]></description>
		<content:encoded><![CDATA[<p>I got the same error when attempting to initiate a drag operation.  It&#8217;s because the the template was not being applied so your DragDropPopup was never being initialized (since OnApplyTemplate was never called) and that&#8217;s what leads to the null reference exception on the DragDropPopup.IsOpen line.</p>
<p>The solution is to move the generic.xaml file that&#8217;s contained in the GenericDragDropLib project into a new sub-folder called Themes as required by the final version of SL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jocknuke</title>
		<link>http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/#comment-15</link>
		<dc:creator><![CDATA[jocknuke]]></dc:creator>
		<pubDate>Mon, 29 Dec 2008 04:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://nickssoftwareblog.wordpress.com/?p=275#comment-15</guid>
		<description><![CDATA[Failed at DragDropPopup.IsOpen while trying to click on the object. Object is null.]]></description>
		<content:encoded><![CDATA[<p>Failed at DragDropPopup.IsOpen while trying to click on the object. Object is null.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

