views:

1943

answers:

2

I have a set of user controls in my wpf form and want to give ability to user to resize them. Whenever a user clicks on a control total 8 boundary rectangles should appear and then by dragging any of them, the user must be able to resize the control. Please help me on this.

+2  A: 

What you want is to build a Resize Adorner. If you google it thou shallt find! http://dvuyka.spaces.live.com/blog/cns!305B02907E9BE19A!144.entry Don´t know if that´s the best sample around, but it´s a good start anyways! /Simon

Simon Söderman
+3  A: 

Usually you do this with an Adorner. Here is a four-part series on that topic without and with Adorners:

Joey
links are dead :(
Joda
@Joda: corrected
Joey