Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i have a usercontrol in ScrollViewer. I need to know a height of not just all control , but just height of visible part( in scrollviewer). thnks.
upd: Moreover , I put this usecontrol in Page, and need to know the height of visible part of UserControl.
Posted
Updated 3-Jun-11 4:35am
v2

1 solution

If the control is in ScrollViewer you can get the visible area using HorizontalOffset / ContentHorizontalOffset along with VerticalOffset / ContentVerticalOffset values.
 
Share this answer
 
Comments
Tonven 3-Jun-11 13:02pm    
thnks.Will try on monday)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900