Edited Mar 30 - Note: Monotouch used. When I rotate to LandscapeRight/Left I want to change the location of some of my buttons. Here's what I'm trying:
- Have my ShouldAutorotateToInterfaceOrientation returning True.
In my WillRotate (I tried putting this in DidRotate as well) it doesn't show any difference, here's my code:
public override void WillRotate (UIInterfaceOrientation toInterfaceOrientation, double duration) { // As a test move one of the buttons somewhere different than where it should be System.Drawing.RectangleF rect = new System.Drawing.RectangleF(40, 1, btn2.Bounds.Width, btn2.Bounds.Height); btn2.Bounds = rect; }
I figure that changing the bounds may not be the right way, but given that the Bounds.X and Bounds.Y are immutable, this was the only way I could find to change the position.