A tableview will also work (ie, via MonoTouch.Dialog and some
custom-written elements), and gives you scrolling and layout for free
:)

One element with the image + text labels
One element with the text

you can use:

var cellSize= new NSString("BIG BLOCK OF TEXT HERE").StringSize(THE
FONT YOU USE, new SizeF(WIDTH, 999), UILineBreakMode.CharacterWrap);

height = cellSize.Height;



(999 assumes that you have unlimited vertical space. Make it bigger if need be)

So, if you have 4 lines of text, and each line is 15px high, then
it'll return a Size with the width (eg 300) and a height of (15 + line
spacing) x 4. It's a bit more complex than that, but you dont need to
know that - basically, you provided the text, and the font, and how
big a space you want to put it in (WIDTH,999) and it works out how
much space it needs...



to work the height of your text block out, and return it in the
CellHeight virtual method on the Element.

On Tue, Nov 8, 2011 at 14:22, Daniel Dillard <[email protected]> wrote:
> You have to set the content size and the physical size of the scrollview.
> (The content size will be greater)
>
> On Tue, Nov 8, 2011 at 8:18 AM, Mittchel Van Vliet <[email protected]>
> wrote:
>>
>> I did.. I've tried the following:
>> UIScrollView
>> -- View
>>      --- Labels, UIImageView and TextView
>> But I don't know what modes to use or if I am doing it correct.
>>
>> 2011/11/8 Daniel Dillard <[email protected]>
>>>
>>> Have you looked at UIScrollview?
>>>
>>> On Tue, Nov 8, 2011 at 8:14 AM, Mittchel Van Vliet <[email protected]>
>>> wrote:
>>>>
>>>> Hello everyone,
>>>> I am trying to create a detail page that shows some basic information
>>>> about a specific product.
>>>> There is only one problem that I am facing: Letting the page scroll!
>>>> I've got a few items that I need in my screen:
>>>> -- UIImageVIew
>>>>     -- Some labels
>>>> -- TextView for large description text.
>>>> What I want to archieve is
>>>> this: http://img21.imageshack.us/img21/9408/consumentadvertentieove.png
>>>> The point is that I don't want the TextView to scroll but the whole
>>>> page.. How do I archieve this in detail? What views do I need and what 
>>>> modes
>>>> do I need?
>>>> Thanks in advance!
>>>>
>>>>
>>>> _______________________________________________
>>>> MonoTouch mailing list
>>>> [email protected]
>>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>>>
>>>
>>
>
>
> _______________________________________________
> 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/

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

Reply via email to