(not infront of my mac, so can't check this, but....) You should be able to hook into the dialogviewcontroller's rotation events (or inherit from it?) and call ReloadData, which should trigger a refresh. There is also an AutoRotate property.
If you have a custom cell, you may be able to override layoutsubviews too. (https://github.com/migueldeicaza/TweetStation/blob/master/TweetStation/UI/TweetCell.cs) Lastly, if you are laying out the elements in the cell's view youself, you could use the springs-and-struts to move your stuff around in the cell. aka AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleTopMargin; AutosizesSubviews = true; etc On Wed, Jul 4, 2012 at 11:24 AM, Andre Dobroskok <[email protected]> wrote: > Hi, > > I have a custom Monotouch Dialog element which holds image. It is set center > inside the element using following code in my GetCell() method: > ------------------ > RectangleF parentFrame = UIScreen.MainScreen.Bounds; > _imageView = new UIImageView(GetImageFrame(parentFrame.Width)) {Image = > ScaledImage}; > _imageView.ContentMode = UIViewContentMode.Center; > cell.ContentView.AddSubview(_imageView); > ------------------ > My problem is that GetCell() is not getting called on rotation and I don't > see any events I can override to handle rotation. > What do I need to do to catch rotation and adjust my layout? > > Thank you. > > Cheers, > Andre > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
