有人能告诉我为什么像我一样添加TextCell一直给我一个错误吗? TextCells可以不直接添加到一行吗?谢谢!
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:NameDisplay"
x:Class="NameDisplay.MainPage">
<Grid ColumnSpacing="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Text="Names Added" Grid.Row="0"/>
<TextCell Text="TextCell" Detail="Test" DetailColor="Green" Grid.Row="1"/>
</Grid>
<Grid Grid.Column="1"
BackgroundColor="Black"/>
</Grid>
</ContentPage>
答案 0 :(得分:0)
单元格仅用于ListViews和TableViews。