开发者

Scrollbar not working in WPF application

开发者 https://www.devze.com 2023-02-12 20:32 出处:网络
I have made a WPF application. I have added a scrollbar to it, but whenever I minimize or maximize the window it\'s not working accordingly. I dont want to use coding. Please tell me how to make the s

I have made a WPF application. I have added a scrollbar to it, but whenever I minimize or maximize the window it's not working accordingly. I dont want to use coding. Please tell me how to make the scrollbar work according to window by setting properties only. I have used a gr开发者_JAVA百科id also. Please help.

Thanx in advance.


The most simple way of using a scrollbar is to place a ScrollViewer in your window and put then elements within this ScrollViewer.

<ScrollViewer>

  <Grid>
     ....
  </Grid>

</ScrollViewer>
0

精彩评论

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