Click here to Skip to main content
13,258,055 members (51,013 online)
Rate this:
 
Please Sign up or sign in to vote.
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 6-May-12 4:47am
Comments
Wes Aday 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
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.171114.1 | Last Updated 3 Feb 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100