开发者

Windows Phone 7 set Image Margin using code

开发者 https://www.devze.com 2023-02-20 03:48 出处:网络
I have one image on top of another.In code I am trying to set it\'s position using int\'s.I have two random int\'s representing the top and left.Ho开发者_如何学Gow can I set it\'s position over the ot

I have one image on top of another.In code I am trying to set it's position using int's.I have two random int's representing the top and left.Ho开发者_如何学Gow can I set it's position over the other image do I use the Margin? If so how?


Complete use style:

image1.Margin = new Thickness(10,50,300,20); //(left, top, right, bottom)


The way to do it was image.Margin = new Thickness();

0

精彩评论

暂无评论...
验证码 换一张
取 消