开发者

WPF Horizontal Scrollbar is not visible

开发者 https://www.devze.com 2022-12-28 02:32 出处:网络
     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 con

     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

精彩评论

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