C# Xamarin表单以编程方式展开listview高度
这是我的xaml:C# Xamarin表单以编程方式展开listview高度,c#,xaml,xamarin,resize,xamarin.forms,C#,Xaml,Xamarin,Resize,Xamarin.forms,这是我的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="SetYourBudget.HomePage"> <StackLay
<?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="SetYourBudget.HomePage">
<StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand">
<Label x:Name="lblImporto" Text="" VerticalOptions="Start" HorizontalOptions="Fill" HorizontalTextAlignment="Center"/>
<ListView VerticalOptions="FillAndExpand" x:Name ="list">
</ListView>
<StackLayout Orientation="Vertical" Spacing="5" VerticalOptions="EndAndExpand" BackgroundColor="#c1c1c1" x:Name="addLayout" Padding="10">
//I remove thrash code
</StackLayout>
</StackLayout>
</ContentPage>
现在,我的问题是:正如您通过xaml所看到的,我有名为list
的ListView
,它位于向下滚动的布局上方
当我滚动下部布局时,我希望列表“增长”以填充滚动动画释放的大小
我贴了一张解释性的图片:
(obv我设置了一些随机数据,因为它只是一个文本。我的目标是理解大小调整)
谢谢大家,很抱歉我的英语不太好试试这个:
<ListView x:Name="someName">
<ListView.Footer>
<Label Text="some text" />
</ListView.Footer>
</ListView>
如果你能解决这个问题,我也有同样的问题。@PrakashChennupati遗憾的是没有。最后,我们决定采用本机解决方案,而不是使用跨平台解决方案。也许可以帮你,对不起,没能解决这个问题!
<ListView x:Name="someName">
<ListView.Footer>
<Label Text="some text" />
</ListView.Footer>
</ListView>