WP7 Prevent ListBox scrolling

后端 未结 1 2048
醉梦人生
醉梦人生 2021-01-17 09:43

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 co

1条回答
  •  無奈伤痛
    2021-01-17 10:39

    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").

    Here is a simple example:

    
        
            

    I hope that this will answer your question.

    0 讨论(0)
提交回复
热议问题