ViewCell

你可以认为 ViewCell 是一个空白的板岩。创建一个看起来完全符合你需要的 Cell 的是你的个人画布。你甚至可以将多个其他 View 对象的实例与 Layout 控件放在一起组成。你只受想象力的限制。也许是屏幕尺寸。

XAML

<ViewCell>
<ViewCell.View>
<StackLayout>
<Button Text="My Button"/>

<Label Text="My Label"/>
<Entry Text="And some other stuff"/>
</StackLayout>
</ViewCell.View>
</ViewCell>

var button = new Button { Text = "My Button" };
var label = new Label { Text = "My Label" };
var entry = new Entry { Text ="And some other stuff" };
var viewCell = new ViewCell {
View = new StackLayout {
Children = { button, label, entry }
}
};

StackOverflow 文档