I have a Canvas
with a Rectangle
:
<Canvas>
<Rettangle/>
</Canvas>
And I want that, when i resize my Canvas, the Rectangle keep the same relative position, for example:
----------------------------------------
| |
| |
| ____ |
| | | |
| |____| |
| |
|--------------------------------------
--------------------
| |
| ___ |
| |__| |
| |
|-------------------
How can I do?