I am using zooming and scrolling in a Radchart, the Step size is recalculated in the event fired on Scrolling or Zooming.

The problem is: I don't know when does and how many times this event gets fired ? In my application it is called many times when I drag the Scroll Bar or Change the Zoom level.

I am unable to find any documentation of this.

RadChart1.DefaultView.ChartArea.ZoomScrollSettingsX.PropertyChanged += ZoomScrollSettingsX_PropertyChanged;

The method ZoomScrollSettingsX_PropertyChanged is called several times on changing of the zoom level.

有帮助吗?

解决方案

PropertyChanged event is fired for every property which is changed for the given object i.e. when you scroll it will be thrown for more than one property like RangeStart and RangeEnd for example. You can check the value of e.PropertyName where e is taken from the handler and execute your code for RangeStart and RangeEnd properties only.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top