Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Wednesday, May 23, 2012

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

User Rating!

Home > Search > Articles & Samples > .Net Framework 2.0 > Class Libraries
Dragging Elements in a Canvas        
Total Hits: 165  |  Today: 0 Author: Josh Smith.       Rating:  
Read Reviews | Write Review | Your Rating: 

Someone asked me recently how to create a WPF application where the user can drag a blue rectangle around the screen. I solved that puzzle, but kept generalizing the solution until it became possible to drag any UIElement on a Canvas (including Buttons, Images, ComboBoxs, Grids, etc.) This article explores a class called CanvasDragManager, which can be attached to any Canvas, enabling the user to drag the objects inside the Canvas. The CanvasDragManager class also provides support for modifiying the z-order of elements in a Canvas (such as ‘bring to front’ and ‘send to back’ operations).

DevASP.Net users Rating
What is your opinion?
Is this your listing?

    If this is your listing and you like to add the rating box
    displayed on the right side on your site you can use the following code.

Go Back
DevASP.Net - Disclaimer - Privacy
© 2002-2010 DevASP.net