2016-08-10 2 views
1

Xamarin.Forms의 새로운 기능으로 VS Community 2015에서 Android Lollipop 시뮬레이터에 앱을 제작합니다. 의 TableView,이 방법으로 편집기를 삽입하려고 미안 : 안드로이드에 대한Xamarin.Forms Editor HeightRequest in TableView

<?xml version="1.0" encoding="utf-8" ?> 
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> 
<ContentPage.Content> 
    <StackLayout> 
    <TableView x:Name="table" Intent="Form"> 
    <TableRoot> 
    <TableSection Title="My note"> 
     <ViewCell> 
     <StackLayout> 
     <Editor BackgroundColor="#FFFF8D" 
       HeightRequest="200" 
       Text="Text on Yellow background" /> 
     </StackLayout> 
     </ViewCell> 
    </TableSection> 
    </TableRoot> 
    </TableView> 
    </StackLayout> 
</ContentPage.Content> 
</ContentPage> 

건물, HeightRequest가 작동하지 않습니다. 하나의 편집기 행이 표시됩니다.

그것은있는 TableView 구조 내가 잘못 뭐하는 거지 (NO있는 tableView, 루트, 섹션 및 내부 StackLayout) 없이 완벽하게 작동? 미리 감사드립니다.

답변

2

TableView의 경우 HasUnevenRows 속성을 true로 설정해야합니다. 이렇게하면 행이 편집기 (첫 번째 행뿐만 아니라)를 완전히 둘러 쌀 수 있습니다.

+0

감사합니다. @LyndonHughey! 완벽하게 작동합니다! –