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

    2. <small id='Z9Giy'></small><noframes id='Z9Giy'>

        WP7 防止列表框滚动

        WP7 Prevent ListBox scrolling(WP7 防止列表框滚动)
        <legend id='ZJ5AS'><style id='ZJ5AS'><dir id='ZJ5AS'><q id='ZJ5AS'></q></dir></style></legend>
      1. <i id='ZJ5AS'><tr id='ZJ5AS'><dt id='ZJ5AS'><q id='ZJ5AS'><span id='ZJ5AS'><b id='ZJ5AS'><form id='ZJ5AS'><ins id='ZJ5AS'></ins><ul id='ZJ5AS'></ul><sub id='ZJ5AS'></sub></form><legend id='ZJ5AS'></legend><bdo id='ZJ5AS'><pre id='ZJ5AS'><center id='ZJ5AS'></center></pre></bdo></b><th id='ZJ5AS'></th></span></q></dt></tr></i><div id='ZJ5AS'><tfoot id='ZJ5AS'></tfoot><dl id='ZJ5AS'><fieldset id='ZJ5AS'></fieldset></dl></div>
          <tbody id='ZJ5AS'></tbody>

      2. <small id='ZJ5AS'></small><noframes id='ZJ5AS'>

          <bdo id='ZJ5AS'></bdo><ul id='ZJ5AS'></ul>

                <tfoot id='ZJ5AS'></tfoot>

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

                  问题描述

                  我有一个包含两个 ListBox 控件的页面.该页面包含基于项目类别的项目列表.

                  I have a page with two ListBox controls. The page contains a list of items based on the item's category.

                  有一个类别的标题,后跟一个包含该类别所有项目的列表框,然后另一个标题跟随着该类别的项目列表,等等.

                  There is a header for a category, followed by a ListBox containing all items for that category, then another header followed a list of items for that category, etc.

                  我遇到的问题是每个 ListBox 都是独立滚动的.我希望整个页面滚动(它确实如此),但不是每个单独的 ListBox.ListBox 控件会根据其内容自动增长,因此无需滚动它们.这可能吗?

                  The issue I'm having is that each ListBox scrolls independently. I want the whole page to scroll (which it does), but not each individual ListBox. The ListBox controls grow automatically to their content, so there is no need to have them scroll. Is this possible?

                  推荐答案

                  要禁用滚动,您只需设置 ScrollViewer.VerticalScrollBarVisibility="Disabled" (如果需要要禁用水平滚动,然后使用 ScrollViewer.HorizontalScrollBarVisibility="Disabled").

                  All you have to do in order to disable the scroll is just to set ScrollViewer.VerticalScrollBarVisibility="Disabled" (if you need to disable the horizontal scroll then use ScrollViewer.HorizontalScrollBarVisibility="Disabled").

                  这是一个简单的例子:

                  <ListBox Height="200" ScrollViewer.VerticalScrollBarVisibility="Disabled">
                      <ListBoxItem >
                          <Button Content="item1"  />
                      </ListBoxItem>
                      <ListBoxItem >
                          <Button Content="item2"  />
                      </ListBoxItem>
                      <ListBoxItem >
                          <Button Content="item3"  />
                      </ListBoxItem>
                      <ListBoxItem >
                          <Button Content="item4"  />
                      </ListBoxItem>
                      <ListBoxItem >
                          <Button Content="item5"  />
                      </ListBoxItem>
                  </ListBox>
                  

                  我希望这能回答你的问题.

                  I hope that this will answer your question.

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

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

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                  CreateDelegate with unknown types(具有未知类型的 CreateDelegate)
                  Does Funclt;Tgt;.BeginInvoke use the ThreadPool?(Funclt;Tgt;.BeginInvoke 使用线程池吗?)
                  How to create a delegate to an instance method with a null target?(如何为具有空目标的实例方法创建委托?)

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

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

                            <tfoot id='Yv3vE'></tfoot>