c#chart control,vertical scrolling problems with zoom [“Stuck Scroll bar”] [英] c# chart control, vertical scrolling problems with zoom ["Stuck Scroll bar"]
问题描述
我有一个程序有一个大的c#图表控件。我允许缩放,允许用户选择任何区域,它会放大。这一切都很好。当我去水平滚动这也工作正常,非常顺利。然而,当我试图垂直滚动滚动条不会移动,我唯一可以做的是使用上下箭头键在滚动条,并且只给出了图的顶部或图的底部我不能滚动到之间的任何东西。关于什么可能发生的任何想法?请让我知道我可以提供什么其他信息。
感谢!
I have a program with a large c# chart control. I am allowing zooming by allowing the user to select any area and it will zoom in. This all works fine. When I go to scroll horizontally this also works fine and very smooth. However when I try to scroll vertically the scroll bar wont move, the only thing I can do is use the up and down arrow keys on the scroll bar and that only gives either the very top of the graph or the very bottom of the graph I can't scroll to anything in between. Any ideas on what could be happening? Please let me know what additional information I can provide. thanks!
我的一些属性:
- ChartArea < br>
- CursorX& CursorY
- AutoScroll = True
- AxisType = Primary
- IsUserEnabled = True
- IsUserSelection = True
- ChartArea
- CursorX & CursorY
- AutoScroll = True
- AxisType = Primary
- IsUserEnabled = True
- IsUserSelection = True
推荐答案
我找到了我的问题的解决方案。
I have found the solution to my problem.
chartAreas.AxisY.ScaleView.SmallScrollMinSize
chartAreas.AxisY.ScaleView.SmallScrollMinSize
Y轴上的值比在我的X轴,因此我不得不有一个较小的SmallScrollMinSize,以滚动到适当的工作。
the values on my Y axis where much smaller then the ones on my X axis thus I had to have a smaller "SmallScrollMinSize" in order for scrolling to work appropriately.
我从这篇文章中得出这个结论。
I figured this out from this article
http://www.codeease.com/scrolling-stuck-in-microsoft-chart-control-2.html
这篇关于c#chart control,vertical scrolling problems with zoom [“Stuck Scroll bar”]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- CursorX & CursorY
- CursorX& CursorY