Xamarin 表单,在 UWP 中拉动以刷新 listView [英] Xamarin forms, Pull to refresh listView in UWP

查看:25
本文介绍了Xamarin 表单,在 UWP 中拉动以刷新 listView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 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.

https://developer.xamarin.com/guides/xamarin-forms/user-interface/listview/interactivity/#Pull_to_Refresh

目前只有 WP8SL、iOS 和 Android 支持 PullToRefresh.

Only WP8SL, iOS and Android have PullToRefresh supported at this moment in time.

这篇关于Xamarin 表单,在 UWP 中拉动以刷新 listView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆