The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: WPF and UserInteractivity part III: Moving an resizing shapes
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Saz RahmanPosted Jun 21, 2011, 7:01 AM
Thanks for your nice article. It is really helpful. I want some shapes (rectangle, ellipse, triangle) in a side of the windows. When I click on any shape, it will draw this shape on the another side of the window, I can be able to write within this shape, I can move or resize this shape. How can I do it?
Patrick WellsPosted Nov 25, 2010, 7:39 AM
I'm getting a 'NullReferenceException was unhandled' error when I try to move a rectangle. It highlights the line: <code> transform.Matrix = new Matrix(1, 0, 0, 1, CurrentPoint.X - StartPoint.X, CurrentPoint.Y - StartPoint.Y); </code>