开发者

The "visible area" of a control?

开发者 https://www.devze.com 2022-12-14 02:55 出处:网络
I have a Canvas within a ScrollViewer. The Canvas have a size of 600x600 and the ScrollViewer 400x400. If i scroll to the right side, i can\'t see 200pxl left side of the Canvas. Therefore my area of

I have a Canvas within a ScrollViewer. The Canvas have a size of 600x600 and the ScrollViewer 400x400. If i scroll to the right side, i can't see 200pxl left side of the Canvas. Therefore my area of Canvas begins at x=200 but actually the visible area at x=0. Is there any way to get so "v开发者_开发问答isile area" of a control by a property or something like that ?

Regards Gepro


What are you looking for?

Choose the one from the list below:

  • ContentVerticalOffset
  • ContentHorizontalOffset
  • ViewportWidth
  • ViewportHeight
0

精彩评论

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