Xamarin Forms:在 ListView 中隐藏滚动条 [英] Xamarin Forms: hiding the scrollbar in a ListView
本文介绍了Xamarin Forms:在 ListView 中隐藏滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种简单的方法可以在 ListView 中隐藏滚动条,但仍然可以滚动?
Is there an easy way to hide the scrollbar in a ListView, but still leave it scrollable?
推荐答案
您可以为每个平台制作自定义的 ListView 渲染器 (http://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/):
You can make a custom ListView renderers for each platform (http://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/):
在安卓上:
ListView.VericalScrollbarEnabled = false;
在 iOS 上:
UIScrollView.ShowsVerticalScrollIndicator = false;
这篇关于Xamarin Forms:在 ListView 中隐藏滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文