I have canvas, where children are add dynamically to the canvas, lets say an image is placed at left = 50, top 50 when canvas width (500) and height(200). When the window is maximized the canvas width and height changes ( 1000, 400), this time want to rearrange the image position as per canvas width and height. Based on research found that, have to implement
MeasureOverride and ArrangeOverride methods of panel.
Here user may add any number of items to the canvass, want to scale the children relative to the canvas size.
How to implement the logic in above methods?