C# WPF Resizing issue


Staff member
I am working on a dashboard application where I would like to let the user resize the widgets on a canvas. Looking around, the best solution to me seemed to use Microsoft's ResizingAdorner class. The example can be found <a href="http://msdn.microsoft.com/en-us/library/ms771714.aspx" rel="nofollow noreferrer">here</a> and the code can be found <a href="http://code.msdn.microsoft.com/wpfsamples" rel="nofollow noreferrer">here</a> (About a quarter way down the page). Everything seemed to work until I clicked one of the widgets (chart controls from <a href="http://www.componentone.com/" rel="nofollow noreferrer">ComponentOne</a>). The bottom right <a href="http://msdn.microsoft.com/en-us/library/ms743737.aspx#about_Adorners" rel="nofollow noreferrer">adorner</a> and the top right <a href="http://msdn.microsoft.com/en-us/library/ms743737.aspx#about_Adorners" rel="nofollow noreferrer">adorner</a> seemed to appear about the width of the and height from the side of the canvas when ever moved. See example below :

<img src=" " alt="alt text">
<img src=" " alt="alt text">

I have been to the StackOverflow question <a href="https://stackoverflow.com/questions/2834452/resizing-textbox-at-runtime-in-wpf">here</a> about using a grid splitter, but this will not work for me since controls will be overlapping grid columns.

I also have been to a similar <a href="https://stackoverflow.com/questions/771275/resizing-a-control-in-wpf">question</a>, but the first <a href="https://stackoverflow.com/questions/771275/resizing-a-control-in-wpf/771361#771361">answer</a> does not work at all, and the second <a href="https://stackoverflow.com/questions/771275/resizing-a-control-in-wpf/771360#771360">answer</a> just merely points to a <a href="http://denisvuyka.wordpress.com/2007/10/15/wpf-simple-adorner-usage-with-drag-and-resize-operations/" rel="nofollow noreferrer">blog</a> where the gentleman either works for microsoft and created the ResizingAdorner class or just copied the code from the wpf samples site. I have also tried is revised code <a href="http://denisvuyka.wordpress.com/2007/10/13/the-wpf-resizing-adorner-for-canvas/" rel="nofollow noreferrer">here</a> but with no luck.
<strong>Is there a quick fix i'm not seeing</strong>