在特定高度之后将滚动条添加到列表框 [英] Add scrollbar to listbox after specific height

查看:63
本文介绍了在特定高度之后将滚动条添加到列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的专家

我有一个列表框,其高度是自动的.当我展开/折叠其项目时,列表框的高度应更改为适合其中的列表框项目.当高度增加到400px时,滚动条应提前显示

Dear Experts

I have listbox whose height is auto. When I expand/collapse its items, the height of listbox should change to fit the listbox's items within it. When height increase to 400px a scrollbar should show

Thanks in advance

推荐答案



设置MaxHeight将ListBox的400属性设置为您想要的.
Hi,

setting the MaxHeight property of the ListBox to 400 should do what you want.


这篇关于在特定高度之后将滚动条添加到列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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