Xamarin形式:将滚动条隐藏在ListView中 [英] Xamarin Forms: hiding the scrollbar in a ListView

查看:234
本文介绍了Xamarin形式:将滚动条隐藏在ListView中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可将滚动条隐藏在ListView中,但仍保持可滚动状态?

Is there an easy way to hide the scrollbar in a ListView, but still leave it scrollable?

推荐答案

您可以为每个平台制作自定义ListView渲染器(

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屋!

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