Drag TextBlock from StackPanel top drop on another
<p>I have a C# application in which I am implementing a drag drop functionality as following;</p>

<pre><code>&lt;Grid&gt;
        &lt;StackPanel Orientation="Horizontal" Height="34" VerticalAlignment="Top"&gt;
            &lt;TextBlock Text="This is satck panel 1" Padding="0, 10, 20, 10"/&gt;
            &lt;StackPanel Orientation="Horizontal" AllowDrop="True" DragEnter="StackPanel_DragEnter" DragLeave="StackPanel_DragLeave" DragOver="StackPanel_DragOver" Drop="StackPanel_Drop" MouseMove="StackPanel_MouseMove"  GiveFeedback="StackPanel_GiveFeedback" &gt;
                &lt;Border CornerRadius="1" BorderBrush="Black" BorderThickness="1"&gt;
                    &lt;TextBlock Text="Text1"/&gt;
                &lt;/Border&gt;
            &lt;/StackPanel&gt;
        &lt;/StackPanel&gt;

        &lt;StackPanel Orientation="Horizontal" Height="30" Margin="0,40" VerticalAlignment="Top"&gt;
            &lt;TextBlock Text="This is stack panel 2" Padding="0,10,20,10"/&gt;
            &lt;Border CornerRadius="1" BorderBrush="Black" BorderThickness="1"&gt;
                &lt;TextBlock Text="Text2"/&gt;
            &lt;/Border&gt;
    &lt;/StackPanel&gt;

&lt;/Grid&gt;
</code></pre>

<p>What I actually have to do this is to populate a list box with the each item having the follwing format:<br/> </p>

<p><code>StackPanel&gt; &lt;TextBlock&gt; &lt;/TextBlock&gt; **&lt;StackPanel AllowDrop&gt; &lt;TextBlock /&gt; &lt;/StackPanel&gt;** &lt;/StackPanel&gt;</code></p>

<p>The StackPanel with <code>AllowDrop=True</code> should accept TextBlock drops (The text blcoks can be dropped from other stack panels). If the TextBlock is dropped over the <code>StackPanel AllowDrop=True</code>, it should accept it as its child and replace the TextBlock with the place from where the dragged TextBlcok came. I have implemented this by looking at the documentation but this doesn't like working since I am able to use DragEnter, Drag Leave but not able to drop the text box.</p>

<p>I am also attaching my short sample project (54 kB) where I implemed the same and this is not working. Link: <a href="http://www.mediafire.com/?ssvf95oa8bd5jh6" rel="nofollow">http://www.mediafire.com/?ssvf95oa8bd5jh6</a></p>
