Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on an application which is written in vs2008.
It is normal behavior for a control if scrollbar size is associated with the height/width the height/width of the control. For example ListBox, ListView etc. For some reason in my case the scrollbar show only up/down arrows with no thumb. I believe it has nothing to do with any of the themes even I am not using any. I created a new project and it works fine in VS2008 and show normal behavior. I spent 2 days and unable to find any answer.
Any help will be very much appreciated.

AghaKhan
Posted

1 solution

I dont know what you exact problem is since you havent given any code. But it should be rather straigt forward:
http://msdn.microsoft.com/en-us/library/ms750665.aspx[^]

Perhaps you forgot to set the HorizontalScrollBarVisibility="Auto"?
 
Share this answer
 
Comments
AghaKhan 8-Apr-13 2:02am    
My control is ListView
<ListView Name="ListViewSegments" ItemsSource="{Binding SelectedList}" Margin="400,49,18,0" Height="159" VerticalAlignment="Top" ScrollViewer.VerticalScrollBarVisibility="Auto" >
It does not work. Still top right two arrows. The height of the controls is about 150.
Kenneth Haugland 8-Apr-13 2:05am    
<ListView Name="ListViewSegments" ItemsSource="{Binding SelectedList}" Margin="400,49,18,0" Height="159" VerticalAlignment="Top" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto"> ?
AghaKhan 8-Apr-13 2:32am    
ScrollViewer.VerticalScrollBarVisibility="Visible" Now I see it design time correctly but Run time same 2 arrows.
AghaKhan 8-Apr-13 2:50am    
This is strange. I just included simple scrollbar in this application and it is behaving the same.

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