Xamarin 表单,在 UWP 中拉动以刷新 listView [英] Xamarin forms, Pull to refresh listView in UWP
问题描述
如何在 Windows 桌面上运行时使用 Xamarin 表单刷新列表?好像拉不出来刷新.tks.
How to refresh a list with Xamarin forms when running on Windows desktop? It seems we can't pull to refresh. Tks.
弗朗索瓦
推荐答案
在 Xamarin Forms 上的 ListView 中拉动刷新需要你实现这 3 件事.
Pull to refresh in a ListView on Xamarin Forms requires you to implement these 3 things.
IsPullToRefreshEnabled="True" RefreshCommand="{Binding RefreshListCommand}" IsRefreshing="{Binding IsBusy, Mode=OneWay}"
如果你有这三样东西,PullToRefresh 就可以了.
If you have those 3 things, PullToRefresh will work.
但是,我一直在查看 UWP 的代码,但在任何地方都找不到 Xamarin Forms 如何为 WinRT 或 UWP 实现 PullToRefresh.查看文档,不支持 WinRT,因此我认为此时也不支持 UWP.
However I have been looking at the code for UWP and can not find anywhere how Xamarin Forms implements PullToRefresh for either WinRT or UWP. Looking at the documentation, WinRT is not supported and hence I assume UWP also wouldn't be supported at this time.
目前只有 WP8SL、iOS 和 Android 支持 PullToRefresh.
Only WP8SL, iOS and Android have PullToRefresh supported at this moment in time.
这篇关于Xamarin 表单,在 UWP 中拉动以刷新 listView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!