المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Size of a custom shape (DesiredSize)



C# Programming
05-10-2009, 11:17 AM
Hi,

I have made custom shapes that the user can draw on a canvas. Now I want to add an adorner around the shape when the user selects it. Normal I use the DesiredSize property to get the size of the element that I want to adorn (in this case the shape). The problem is that de desired size of my custom shapes start at the origin of the canvas (0, 0). The endpoint is correct (bottom-right point of the shape).

Does anybody knows how I can solve this so the startpoint is the top-left corner of the shape?

Thanks,
Bart