【发布时间】:2018-08-13 11:28:36
【问题描述】:
我想在 gridview 中使用一个项目模板,这样所有的孩子看起来都一样,这可能吗?或者在 Xamarin Forms 中是否有任何解决方法。
这是我的项目模板。
<FlexLayout
Grid.Row="0" Grid.Column="0"
HorizontalOptions="CenterAndExpand"
VerticalOptions="CenterAndExpand"
Direction="Column" AlignContent="Center"
MinimumHeightRequest="110"
WidthRequest="90"
>
<Button BorderColor="#fff"
BorderWidth="1"
BackgroundColor="#4D000000"
HeightRequest="90" CornerRadius="45"
Image="vera"/>
<Label Text="Chat"
Margin="0,4,0,0"
HeightRequest="20"
FontSize="9"
HorizontalTextAlignment="Center"
HorizontalOptions="CenterAndExpand"/>
</FlexLayout>
【问题讨论】:
标签: xaml xamarin gridview xamarin.forms itemtemplate