Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » WPF   (RSS)
Sorry, but there are no more tags available to filter with.

Enablilng dragging in Canvas, v3.5 edition

About a year ago I posted a class implemented couple of dependency properties you could attach to a Canvas and it's children and allowed dragging. The DPs were working quite well with any visual element inside the Canvas, including the standard controls
Posted by Franci Penov | 1 Comments
Filed under:

Enabling dragging in Canvas, part 2

Update: There were some bugs in the code, which caused funny behavior with elements that have a render transform applied to them. I've updated the code below to fix these. In part 1 we covered how the dragging behavior will be attached to the Canvas object.
Posted by Franci Penov | 1 Comments
Filed under:

Attachment(s): CanvasDragHelper.zip

Enabling dragging in canvas

When developing UI, most of the time we want the controls nicely sized, ordered and aligned automatically. But sometimes it's just fun to put them free floating and be able to push them around. The Canvas panel allows for absolute positioning of the controls
Posted by Franci Penov | 1 Comments
Filed under:
 
Page view tracker