BTW, was good meeting you at Evolve! I hope you had a good time :)
On 19 April 2013 11:22, Nic Wise <[email protected]> wrote: > Hi Mike > > This should do it :) > > if (arect.Contains(activefield.Frame.Origin)) > { > var scrollpoint = new PointF (0f, activeField.Frame.Y - > kbSize.Height); > > scrollView.SetContentOffset (scrollpoint, true); > } > > > > > On 19 April 2013 10:02, Mike Murdock <[email protected]> wrote: > >> Trying to convert the following in C# can anyone help?**** >> >> ** ** >> >> if (!CGRectContainsPoint(aRect, activeField.frame.origin) ) {**** >> >> CGPoint scrollPoint = CGPointMake(0.0, >> activeField.frame.origin.y-kbSize.height);**** >> >> [scrollView setContentOffset:scrollPoint animated:YES];**** >> >> }**** >> >> ** ** >> >> Thanks**** >> >> Michael Murdock**** >> >> AllMeds**** >> >> ** ** >> >> _______________________________________________ >> MonoTouch mailing list >> [email protected] >> http://lists.ximian.com/mailman/listinfo/monotouch >> >> > > > -- > Nic Wise > t. +44 7788 592 806 | @fastchicken > b. http://www.fastchicken.co.nz/ > -- Nic Wise t. +44 7788 592 806 | @fastchicken b. http://www.fastchicken.co.nz/
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
