<legend id='ksYCA'><style id='ksYCA'><dir id='ksYCA'><q id='ksYCA'></q></dir></style></legend>
    1. <i id='ksYCA'><tr id='ksYCA'><dt id='ksYCA'><q id='ksYCA'><span id='ksYCA'><b id='ksYCA'><form id='ksYCA'><ins id='ksYCA'></ins><ul id='ksYCA'></ul><sub id='ksYCA'></sub></form><legend id='ksYCA'></legend><bdo id='ksYCA'><pre id='ksYCA'><center id='ksYCA'></center></pre></bdo></b><th id='ksYCA'></th></span></q></dt></tr></i><div id='ksYCA'><tfoot id='ksYCA'></tfoot><dl id='ksYCA'><fieldset id='ksYCA'></fieldset></dl></div>

        <tfoot id='ksYCA'></tfoot>

          <bdo id='ksYCA'></bdo><ul id='ksYCA'></ul>
      1. <small id='ksYCA'></small><noframes id='ksYCA'>

      2. 如何在 WPF ListBox 中禁用水平滚动?

        How can I disable horizontal scrolling in a WPF ListBox?(如何在 WPF ListBox 中禁用水平滚动?)
            <bdo id='D7zXo'></bdo><ul id='D7zXo'></ul>
              <tbody id='D7zXo'></tbody>
            <i id='D7zXo'><tr id='D7zXo'><dt id='D7zXo'><q id='D7zXo'><span id='D7zXo'><b id='D7zXo'><form id='D7zXo'><ins id='D7zXo'></ins><ul id='D7zXo'></ul><sub id='D7zXo'></sub></form><legend id='D7zXo'></legend><bdo id='D7zXo'><pre id='D7zXo'><center id='D7zXo'></center></pre></bdo></b><th id='D7zXo'></th></span></q></dt></tr></i><div id='D7zXo'><tfoot id='D7zXo'></tfoot><dl id='D7zXo'><fieldset id='D7zXo'></fieldset></dl></div>

                <tfoot id='D7zXo'></tfoot>

              • <legend id='D7zXo'><style id='D7zXo'><dir id='D7zXo'><q id='D7zXo'></q></dir></style></legend>

                <small id='D7zXo'></small><noframes id='D7zXo'>

                1. 本文介绍了如何在 WPF ListBox 中禁用水平滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这似乎是一个荒谬的简单问题,但 Google 和 Stack Overflow 搜索却一无所获.如何在 WPF ListBox 什么时候物品占用的水平空间超过了盒子里的可用空间?

                  This seems to be an absurdly simple question but Google and Stack Overflow searches yield nothing. How can I disable horizontal scrolling in a WPF ListBox when items take up more horizontal space than is available in the box?

                  推荐答案

                  在 XAML 中:

                  <ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled" />
                  

                  在 C# 中:

                  myListBox.SetValue(
                      ScrollViewer.HorizontalScrollBarVisibilityProperty,
                      ScrollBarVisibility.Disabled);
                  

                  这篇关于如何在 WPF ListBox 中禁用水平滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                    <legend id='Ysnyo'><style id='Ysnyo'><dir id='Ysnyo'><q id='Ysnyo'></q></dir></style></legend>
                      <tbody id='Ysnyo'></tbody>
                  1. <i id='Ysnyo'><tr id='Ysnyo'><dt id='Ysnyo'><q id='Ysnyo'><span id='Ysnyo'><b id='Ysnyo'><form id='Ysnyo'><ins id='Ysnyo'></ins><ul id='Ysnyo'></ul><sub id='Ysnyo'></sub></form><legend id='Ysnyo'></legend><bdo id='Ysnyo'><pre id='Ysnyo'><center id='Ysnyo'></center></pre></bdo></b><th id='Ysnyo'></th></span></q></dt></tr></i><div id='Ysnyo'><tfoot id='Ysnyo'></tfoot><dl id='Ysnyo'><fieldset id='Ysnyo'></fieldset></dl></div>

                      <small id='Ysnyo'></small><noframes id='Ysnyo'>

                        • <bdo id='Ysnyo'></bdo><ul id='Ysnyo'></ul>

                          • <tfoot id='Ysnyo'></tfoot>