Click here to Skip to main content
16,017,249 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello. I am trying to add scrollbars into my WPF application but it doesn't seem to work. Only he two ends of the scrollbars show but the actual bar isn't visible.
Does anyone know the solution to this problem please
Thanks
Posted
Comments
[no name] 6-May-12 10:03am    
The *thumb* won't appear unless you actually have something to scroll....
Snikoggs 6-May-12 10:05am    
Wow. I actually do have other things on the page though

Only he two ends of the scrollbars show but the actual bar isn't visible
This might be because there is nothing in it to scroll. By default, ScrollViewer.HorizontalScrollBarVisibility Property [^] & ScrollViewer.VerticalScrollBarVisibility Property[^] are 'Auto' and thus they appear when it should be.

If you want that to be visible all the time or let one of them be auto/not visible at all then you can set it explicitly: ScrollBarVisibility Enumeration[^]
 
Share this answer
 
 
Share this answer
 
Comments
Snikoggs 7-May-12 10:38am    
I grouped all my controls into a Canvas.. I dunno, might it have anything to do with the thumb not appearing?

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