Hello Richard, That's how .NET works because `Frame`'s type is RectangleF, a struct (value-type) and not a class (reference).
See: http://stackoverflow.com/q/7899415/220643 Sebastien On Mon, Feb 6, 2012 at 4:15 AM, Richard Heesbeen <r...@xs4all.nl> wrote: > Hi All, > > I’m playing arround with monotouch to see if we should go and use it for our > projects. It looks very promising so far, but i encountered something weird. > > When i’m trying to set the size of an UIView like so View.Frame.Width = 100; > its not getting set. The only way i can change the frame is by setting an > hole new rect for it: Frame = new RectangleF(0,0, 100, 100). > > shouldn’t it be possible to just change the properties on the frame itself? > > Greetz, > Richard. > > > _______________________________________________ > MonoTouch mailing list > MonoTouch@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/monotouch > _______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch