I was not able to reproduce the behavior that you describe.  I have
attached the sample I used for testing.  Is this similar to what you
were coding?

this.View.BackgroundColor = UIColor.Yellow;

UIView masterView = new UIView ();
masterView.BackgroundColor = UIColor.Blue;

masterView.Frame = new RectangleF (this.View.Frame.X + 10,
                                   this.View.Frame.Y + 40,
                                   this.View.Frame.Width - 20,
                                   this.View.Frame.Height - 50);

masterView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth |
        UIViewAutoresizing.FlexibleHeight;

UIView subView = new UIView ();
subView.BackgroundColor = UIColor.Green;

subView.Frame = new RectangleF (15, 15,
                                   masterView.Frame.Width - 30,
                                   masterView.Frame.Height - 30);

subView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth |
        UIViewAutoresizing.FlexibleHeight;

UIButton button = UIButton.FromType (UIButtonType.RoundedRect);
button.SetTitle ("Click", UIControlState.Normal);
button.Frame = new RectangleF (5, 5, 70, 24);
button.TouchUpInside += (sender, e) => {
        masterView.Frame = new RectangleF (masterView.Frame.X + 5,
                                   masterView.Frame.Y + 5,
                                   masterView.Frame.Width - 10,
                                   masterView.Frame.Height - 10);
        RectangleF tRect = subView.Frame;

-bill

On Sat, Apr 28, 2012 at 2:59 PM, activa <[email protected]> wrote:
> Yes I have. It's the default setting anyway. But being paranoid, I tried
> setting it explicitly, but it didn't help (as expected).
>
> Thanks,
> Philippe
>
>
> René Ruppert wrote
>>
>> Have you set "AutoSizesSubviews" to TRUE?
>>
>> René
>>
>>
>
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/UIViewAutoresizing-behavior-different-in-MonoTouch-tp4595053p4595139.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch

Attachment: delete_2012_04_30ViewController.cs
Description: Binary data

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to