How to change X and Y of a button
Posted
by Driss Zouak
on Stack Overflow
See other posts from Stack Overflow
or by Driss Zouak
Published on 2010-04-06T14:20:10Z
Indexed on
2010/04/06
14:23 UTC
Read the original article
Hit count: 285
I'm using MonoTouch. When I rotate to LandscapeRight/Left I want to change the location of some of my buttons but I'm not having any success. I'm replacing the button.Bounds with a new rectangleF and setting that value in the WillRotate, but that's not working.
I am returning true in my ShouldAutorotateToInterfaceOrientation handler.
In principal what I'm trying to do is allow as much as possible to automatically rotate but then fix a couple of buttons that end up in a bad place.
© Stack Overflow or respective owner