Reputation: 2315
I have a circular button, which I want to resize (similarly to how you do it in the design window). If this was a rectangle I can attach some thumbs or adorners around the edges and keep track of the drag delta and update the size correspondingly. But how do I do it for a circle, I guess I could add a circular thumb around the outside and when the user drags it I can update the size of the templated parent. Any other way to go about this?
Upvotes: 1
Views: 491
Reputation:
I've to admit there's one more elegant solution for the problem, it's more advanced from a technology point of view too - namely a resize behavior:
http://10rem.net/blog/2010/01/09/a-wpf-behavior-for-window-resize-events-in-net-35
Upvotes: 0
Reputation:
Here's the one, I didn't try it myself though: http://denisvuyka.wordpress.com/2007/10/13/the-wpf-resizing-adorner-for-canvas/
Upvotes: 1