开发者

WPF Horizontal Scrollbar is not visible

     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>  
    &l开发者_如何学Pythont;Grid>  
        rows ...  
    </Grid>  
</ScrollViewer>  

Thanks,

ant.


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

<ScrollViewer HorizontalScrollBarVisibility="Auto">
   <Grid>
   ... rows ...
   </Grid>
</ScrollViewer>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜