events are triggered when the PanOffset
properties are changed. There isn't any build-in logic to predict when the user has stropped zooming or panning. For example, if the user uses the mouse wheel to zoom there isn't any why to know if the user is going to keep zooming or whether he will decide to stop.
However, you can implement custom logic with a timer to detect when the PanOffsetChanged
events were triggered. For example, you can check if either of those events were triggered in the last 1 second and if they haven't, then you may assume that the user has stopped zooming or panning.
Regarding your last question, when a PanOffsetChanged
event is triggered you receive the NewPanOffset
values which are of type Point
.They represent the offset of the newly visualized viewport of the RadChartView
in pixels and not the X-axis elements. If you are using a DateTimeContinuousAxis
as a horizontal axis you can check the ActualVisualRange
property of the DateTimeContinuousAxis
var actualVisualRange = (
On a side note we further investigated why the KeyDown
event isn't triggered. As it turns out it is not because it is handled somewhere along the way but rather that the RadCartesianChart
doesn't get focused. The given approach in my previous post is still valid.
Please let us know if this helps.
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.