i tried hard to figure this out but no success. Simple thing i want to do is to change the position of a button. I found rect property but it takes Dimensionobject as value.Sorry, but i'm not able to create object for Dimension. i try this way
var dim = new Dimension();