views:

96

answers:

1

Hi, I am using a scroll viewer in my xaml page. When i display lot of entries in this viewer it starts showing a scroll bar which is fine and desirable. But while exporting that page in jpeg format i need to show all entries in one image. Hence i am planning to increase its size just enough to make scroll bar disappear. Chalange i am facing with this is that i can not calculate exactly how much do i need to increase its height so that it can accomodate all entries without showing scroll bar. Thanks in advance.

-- Lalit

A: 

I believe you want ScrollViewer.ExtentWidth and ScrollViewer.ExtentHeight.

HTH,
Kent

Kent Boogaart
Hi Kent,Sorry to say but ExtentHeight is not giving me actual height it would desire to list all elements without scroll bar. :(
Lalit