thrashard Posted May 28, 2010 Report Share Posted May 28, 2010 How do I capture the Zoom and Scroll events? I need to update other charts and grids based on the area zoomed into. I tried ScrollViewChanged, but this did not seem to catch anything but the initial zoom in. I need to know when the zoom or scroll changes and more specifically what the new date range selected is. Thanks. Quote Link to comment Share on other sites More sharing options...
thrashard Posted June 2, 2010 Author Report Share Posted June 2, 2010 Not the best response time for such an expensive product Quote Link to comment Share on other sites More sharing options...
JuanC Posted June 2, 2010 Report Share Posted June 2, 2010 We are in the process of building a sample to confirm that the API covers your scenario and post it here, note that GetScrollView should return the range as doubles, if you are using Dates you can translate those values using the static methods in DataUnit (e.g. DoubleToDate) JuanC Quote Link to comment Share on other sites More sharing options...
JuanC Posted June 4, 2010 Report Share Posted June 4, 2010 We have uploaded a new build 3807 that should fix the issue where the second time you zoom the ScrollViewChanged is not fired. I tested both zoom stripe and map and rezooming and scrolling sent the event as expected. If you have any problems with this build please try posting/sending a sample app that reproduces the issues. JuanC Quote Link to comment Share on other sites More sharing options...
thrashard Posted June 7, 2010 Author Report Share Posted June 7, 2010 Where do I get this build? 8.0.3581.26941 is available in the WPF trial download page, updated 2/22/2010. Quote Link to comment Share on other sites More sharing options...
thrashard Posted June 7, 2010 Author Report Share Posted June 7, 2010 Carlos, Thanks a bunch for the example, it helped a lot. I am trying to get the date out of the Axis Scroll Event, I have attached a sample application. Also, can I use ZoomStyle.Scroll and disable the Y-Axis scrolling so we only scroll X-Axis (but get the condensed scroll viewer (instead of the Map or Zoom areas)) myChart.AxisX.Labels.Format = AxisFormat.Date; void AxisX_ScrollViewChanged(object sender, EventArgs e) { double min = 0;double max = 0; myChart.AxisX.GetScrollView( out min, out max);label1.Content = "Axis X min: " + min + ", max: " + max; try{label2.Content = "Axis X min: " + DateTime.FromOADate(min) + ", max: " + DateTime.FromOADate(max); } catch (Exception ex) { label2.Content = ex.Message; } } Quote Link to comment Share on other sites More sharing options...
JuanC Posted June 10, 2010 Report Share Posted June 10, 2010 You can download our most recent hotfix here (make sure you run IE as an Administrator if UAC is enabled). 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.