thubble Posted May 22, 2009 Report Share Posted May 22, 2009 I'm having a problem where I have a Gantt chart with a scroll bar on the X axis, and it is scrolling in the wrong direction. For instance, when the chart is first initialized, the points displayed are the top ones, but the scroll position is at the bottom. And when I move the scrollbar UP, it displays points farther down. I've tried putting a scrollbar on the Y axis and it works as expected. When I look at the AxisX.ScrollPosition and AxisX.Scrollbar.Value at any given time, they seem to be opposite. For instance, if I have 40 points, and AxisX.ScrollPosition is 10, then AxisX.Scrollbar.Value will be 30. Is there any way to reverse the direction of the scrollbar? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
thubble Posted May 22, 2009 Author Report Share Posted May 22, 2009 I found a way to fix this: If chtTest.AxisX.ScrollBar IsNot Nothing Then AddHandler chtTest.AxisX.ScrollBar.ValueChanged, AddressOf AxisX_Scroll End If ... Private Sub AxisX_Scroll(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) chtTest.AxisX.ScrollPosition = chtTest.AxisX.ScrollBar.ValueEnd Sub Is there an easier/more elegant way to do this, though? Quote Link to comment Share on other sites More sharing options...
JuanC Posted May 22, 2009 Report Share Posted May 22, 2009 This is a bug, we should have a hotfix next week. The workaround you suggested will not be necessary. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.