I have a ScrollViewer control in my window and I would like to hide it when the user cannot scroll down the page. Just like with the horizontal scroll viewer. here is an example:
so here both scrollers are visible because scrolling is enabled:
if I collapse some of the columns of my listview note how eventually the horizontal scroller disappears:
Now note what happens with the vertical scroller:
so far its visible and that's ok because not all the content fits in the page. But let me maximize the page and co-lapse all the group boxes so that all the content fits in the page:
Why is it visible if it is not possible to scroll? I set all the group boxes height = 0 except the last one and the vertical scroller still shoes up? The horizontal scroller disappeared when it was not possible to scroll any more. Why does the vertical scroller does not behave the same way?
What can I do to make it invisible when it is not possible to scroll?
Make sure that your Scrollviewer's VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With