views:

1609

answers:

2

Hi,

Is it possible to force the horizontal (or vertical) scroll to NOT display even when needed?

+1  A: 

Directly on the scroll bar:

<ScrollViewer HorizontalScrollBarVisibility="Hidden" />

If you're doing it in a control that implements it in its ControlTemplate:

<StackPanel ScrollViewer.HorizontalScrollBarVisibility="Hidden" />
Carlo
+6  A: 

You can specify the visibility of the scrollbar for both vertical and horizontal scrolling to four options, using the ScrollViewer.HorizontalScrollBarVisibility and ScrollViewer.VerticalScrollBarVisibility attached properties: Auto, Disabled, Hidden and Visible.

<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled">

Disabled will have it never show up and scrolling is not possible, Hidden will have it not show, but will allow users to scroll using text selection and arrow keys/mousewheel, etc.

Guy Starbuck
Disabled is exactly what I neeeded. Thanks !
David Brunelle