Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Horizontal Scrollbar is not visible

Tags:

wpf

scrollbar

     I have a Grid inside ScrollViewer. Grid has only one columns and many rows. I add controls into grid rows. The problem is I can see VerticalScrollBar when I am adding controls but I cannot see HorizontalScrollBar although I add very wide controls.
My xaml looks like the following

<ScrollViewer>  
    <Grid>  
        rows ...  
    </Grid>  
</ScrollViewer>  

Thanks,
ant.

like image 697
Ant Avatar asked Apr 21 '10 01:04

Ant


1 Answers

Set the HorizontalScrollBarVisibility of the ScrollViewer to "Auto" or "Visible".

<ScrollViewer HorizontalScrollBarVisibility="Auto">
   <Grid>
   ... rows ...
   </Grid>
</ScrollViewer>
like image 114
Josh Avatar answered Sep 26 '22 02:09

Josh