0
我想用带有黄色背景的单元格和一个带有文本的橙色框以及中等大小的图像执行操作,但不起作用。图像不会出现大的,我不能用保证金单元格不显示完整图像
这是我的XAML
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="neoFly_Montana.Views.PromocoesView"
BackgroundImage="promocoesbackground"
Title="Promoções">
<ContentPage.Content>
<ListView x:Name="listview_promocoes" Margin="0, 20, 0, 0 ">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout BackgroundColor="AliceBlue" HorizontalOptions="Center" VerticalOptions="FillAndExpand">
<Label Text="{Binding titulo}" Style="{StaticResource labelsfont}"/>
<Image Source="{Binding imagem}" Aspect="AspectFill"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ContentPage.Content>
这是坏的结果(含2项 - 你无法看到图像)
我想要做这样的事情,而是因为当我使用它,应用程序不工作,我不能使用保证金。
它需要一个ListView的一个项目。 所有项目应该是这样的。
我该怎么做? 谢谢。
我用它,但我的心不是像大再次..像我这里贴的照片。你可以 只看到我的应用程序中的图片的一小部分:/ 我不知道发生了什么... –
它似乎是一行...在我的应用程序似乎行:/ –
现在它的工作 谢谢非常 –