Saturday, September 15, 2012

Use CanvasDargDropTarget

Use CanvasDargDropTarget

Which xmlns to include for using CanvasDargDropTarget ?

<toolbox:CanvasDargDropTarget AllowDrop="True" AllowedSourceEffects="Copy"  Grid.Row="0" >
   
<Canvas Name="canvas" Width="587" Height="400" Background="Transparent">
                         
   
</Canvas>
</toolbox:CanvasDargDropTarget>

Answers & Comments...

Answer: 1

Jigna Punjabi

Jigna Punjabi

<controlsToolkit:PanelDragDropTarget>

             <Canvas Height="100" Background="AliceBlue" Width="200" />

         </controlsToolkit:PanelDragDropTarget>



Answer: 2

Hopefully, you just had a typo in the posting otherwise it should be CanvasDragDropTarget.



Answer: 3

Hi Jigna,

As thaicarrot posted above, there is a PanelDragDropTarget(not CanvasDragDropTarget ) which included in silverlight toolkit(xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" ).

Best Regards,



Answer: 4

Here is a post that shows a CANVASDragDropTarget which is what the original poster said he wanted:

http://forums.silverlight.net/p/194791/452507.aspx

maybe that helps.

Not clear from the post if he wanted the xaml, or just the toolkit xmlns.





No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog