Editor HeightRequest not working in a TableView

MarlonDiasMarlonDias USMember
edited August 2016 in Xamarin.Forms

Hi. I´m new in Xamarin.Forms, working on VS Community 2015, building an app to Android Lollipop simulator. I´m trying to insert an Editor into a TableView, this way:

StackLayout / TableView / TableRoot / TableSection / ViewCell / StackLayout /

Editor BackgroundColor="#FFFF8D" HeightRequest="200" Text="Text on Yellow background"

and all the way back closing the tags:
StackLayout / ViewCell / TableSection / TableRoot / TableView / StackLayout

Building for Android, HeightRequest does not work. Just one Editor line is showing.

It works perfectly without the TableView structure (no tableView, Root, Section etc...)
What am I doing wrong?
Thanks in advance.

(posted also at http://stackoverflow.com/questions/38883330/xamarin-foms-editor-heightrequest-in-a-tableview)

Best Answer

  • LyndonHugheyLyndonHughey US ✭✭✭
    Accepted Answer

    I replied in your SO thread, but I'll post here as well...

    You'll want to set the HasUnevenRows property to true for the TableView. That will allow the rows to fully enclose the editor (not just the first line).

Answers

  • LyndonHugheyLyndonHughey USUniversity ✭✭✭
    Accepted Answer

    I replied in your SO thread, but I'll post here as well...

    You'll want to set the HasUnevenRows property to true for the TableView. That will allow the rows to fully enclose the editor (not just the first line).

Sign In or Register to comment.