Selection Zooming issue

2 posts, 0 answers
  1. Paul
    Paul avatar
    15 posts
    Member since:
    Jan 2012

    Posted 18 Jun 2012 Link to this post

    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)
  2. Paul
    Paul avatar
    15 posts
    Member since:
    Jan 2012

    Posted 18 Jun 2012 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top