I have an application where need to dynamically create and move textblocks around in a canvas later save the layout and the load the layout.
Problem i am facing is tiring to get the position of the textblock.
I tried this two method, but its not working
item.GetValue(TranslateTransform.XProperty).ToString();//always give zero
Canvas.GetTop(item);//always gives the initial position, does not update after dragging.
Getting coords from controls:
Setting coords when loading state: