This is a migrated thread and some comments may be shown as answers.

Selection Zooming issue

1 Answer 90 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 18 Jun 2012, 01:57 PM
Hello,

I'm experiencing an issue with using the mouse selection zooming (where you select a rectangle to zoom in on).  After a few successful zooms, an error is thrown (ArgumentException: Width and Height must be non-negative.) when trying to zoom in to fine detail.  I assume this has something to do with rendering the pan/zoom bar, but I'm not certain.

I can catch the previewMouseUp event, but I'm not sure how to correctly check/handle this issue.

Any help/guidance would be appreciated.

Also, the interesting bit of the stacktrace from the exception:

at System.Windows.Size..ctor(Double width, Double height)
   at Telerik.Windows.Controls.ChartView.ChartPanAndZoomBehavior.UpdatePanAndZoom(Double startX, Double endX, Double startY, Double endY) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartPanAndZoomBehavior.Branch.cs:line 278
   at Telerik.Windows.Controls.ChartView.ChartPanAndZoomBehavior.AdornerLayerMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartPanAndZoomBehavior.Branch.cs:line 252
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

1 Answer, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 18 Jun 2012, 05:59 PM
After looking at an example project posted here by an admin (which did not have the problem I was seeing), I eventually realized that the example project was using newer DLLs than I was.  After downloading the update, my issue has been fixed.

Thanks,
Paul
Tags
ChartView
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Share this question
or