C#C
C#15mo ago
reeeeeee

Saving Draggable objects location wpf

I have like 10 different objects which can be draggable across canvas (textboxes, labels, WrapPanels, DockPanels, etc).
I would like to save their location so it will be shown after the restart.
What would be the best way to achieve that?
Obviously i could do like 3 bindable properties for each object (vlaue, positionX, positionY), but that would be 30 properties which would be really messy and like 150 lines of code (with mvvvm binding). Any idea?
Was this page helpful?