<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Drag and Drop / Hit Detection</title><link>http://forums.silverlight.net/forums/thread/119290.aspx</link><pubDate>Tue, 28 Oct 2008 16:10:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119290</guid><dc:creator>damonpayne</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119290.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=119290</wfw:commentRss><description>&lt;p&gt;The most recent RTW code is here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.damonpayne.com/2008/10/19/RunTimeIsDesignTimeForAGT14.aspx"&gt;http://www.damonpayne.com/2008/10/19/RunTimeIsDesignTimeForAGT14.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Drag and Drop / Hit Detection</title><link>http://forums.silverlight.net/forums/thread/118688.aspx</link><pubDate>Mon, 27 Oct 2008 22:14:41 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118688</guid><dc:creator>Aaron Edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/118688.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=118688</wfw:commentRss><description>&lt;p&gt;Oh, checking the top-left point.&amp;nbsp; I hadn&amp;#39;t thought of that.&amp;nbsp; That actually should solve my problem straight-off.&amp;nbsp; But I&amp;#39;m definitely gonig to check out your code, because it looks much cleaner than my approach.&lt;/p&gt;
&lt;p&gt;So the zip file at the bottom of the page is the RTW version, right?&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: Drag and Drop / Hit Detection</title><link>http://forums.silverlight.net/forums/thread/118685.aspx</link><pubDate>Mon, 27 Oct 2008 21:57:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118685</guid><dc:creator>damonpayne</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/118685.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=118685</wfw:commentRss><description>&lt;p&gt;The code has been updated for RTW since that particular article,&lt;/p&gt;
&lt;p&gt;Currently the hit test uses the upper-left hand corner of the object, but it would be easy to change&amp;nbsp;&amp;quot;HitTest&amp;quot; to take into account the expected RenderSize of the object.&lt;/p&gt;</description></item><item><title>Re: Drag and Drop / Hit Detection</title><link>http://forums.silverlight.net/forums/thread/118682.aspx</link><pubDate>Mon, 27 Oct 2008 21:46:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118682</guid><dc:creator>Aaron Edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/118682.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=118682</wfw:commentRss><description>&lt;p&gt;Thanks, Damon.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;This looks pretty cool.&amp;nbsp; Since you wrote this yourself, you can tell me if it OnDrop fires only if the entirety of the purple couch is on the design surface (rather than half-in/half out).&amp;nbsp; I only ask because this looks to be a beta2 application, and might be a bit of work to port to the Release Version.&amp;nbsp; Thanks!&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: Drag and Drop / Hit Detection</title><link>http://forums.silverlight.net/forums/thread/118646.aspx</link><pubDate>Mon, 27 Oct 2008 20:54:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118646</guid><dc:creator>damonpayne</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/118646.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=118646</wfw:commentRss><description>&lt;p&gt;This might help?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.damonpayne.com/2008/09/20/RunTimeIsDesignTimeForAGT7.aspx"&gt;http://www.damonpayne.com/2008/09/20/RunTimeIsDesignTimeForAGT7.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Drag and Drop / Hit Detection</title><link>http://forums.silverlight.net/forums/thread/118526.aspx</link><pubDate>Mon, 27 Oct 2008 19:02:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:118526</guid><dc:creator>Aaron Edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/118526.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=118526</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to detect when one object has been dragged inside another.&amp;nbsp; What&amp;#39;s the best way to do this?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Let&amp;#39;s say I have two objects: ObjectA and Object B, and I want to know when ObjectA has been dragged inside of ObjectB.&amp;nbsp; Obviously I can&amp;#39;t use ObjectB.MouseLeftButtonUp, since ObjectA is capturing the mouse at that time (it&amp;#39;s being dragged by the user).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I&amp;#39;m thinking I&amp;#39;ll have to do some hit testing.&amp;nbsp; However, the examples I&amp;quot;ve seen online (&lt;a href="http://www.andybeaulieu.com/Default.aspx?tabid=67&amp;amp;EntryID=95"&gt;http://www.andybeaulieu.com/Default.aspx?tabid=67&amp;amp;EntryID=95&lt;/a&gt;&amp;nbsp;for example), test for any intersection at all, not just for &amp;quot;is ObjectA entirely contained by ObjectB&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your suggestions.&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item></channel></rss>