滚动条到列表框 [英] Scrollbar to a Listbox

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

问题描述

我是Silverlight的新手。我有一个包含选择按钮的xaml。点击后,它会调用"显示"功能。 Showfunction在xaml.cs文件中处理。 showfunction显示一个列表框。列表框不包含垂直滚动条。
如何向此列表框添加滚动条? 

I am new to Silverlight. I have a xaml which contains a picker button. On click, its calls a 'Show' function. The Showfunction is handled in the xaml.cs file. The showfunction displays a listbox. The listbox does not contain a vertical scrollbar. How do I add a scrollbar to this listbox? 

推荐答案

您好,

希望这会对你有所帮助。

Hope this will help you.

 <ListBox x:Name="lsstbx" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <ListBoxItem Content="A"></ListBoxItem>
            <ListBoxItem Content="B"></ListBoxItem>
            <ListBoxItem Content="C"></ListBoxItem>
        </ListBox>


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

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