I have a wpf application. There is a image control that shows a image. I have put a canvas on top and I draw line on it. With double click I increase the size of the image control. Hence image in it also increases to fit the image control but the size of the line drawn on the canvas does not change.

I want when I change the size of image shapes like line or rectangle, drawn on image also changes in proportion.