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