2016-08-10 9 views
1

Xamarin.Formsの新機能で、VS Community 2015でAndroid Lollipopシミュレータにアプリを構築しています。テーブルビュー、このようにエディタを挿入しようと - 私:Android用Xamarin.Formsエディタ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は動作しません。 1つのエディタ行だけが表示されます。

はありません TableView構造体(tableView、Root、Section、inner StackLayoutはありません) 私は間違っていますか? ありがとうございます。

答えて

2

TableViewでは、HasUnevenRowsプロパティをtrueに設定します。これにより、行がエディタを完全に囲むことができます(最初の行だけでなく)。

+0

ありがとう、@LyndonHughey!完璧に動作します! –

関連する問題