Change the cursor on zoom and pan

6 posts, 0 answers
  1. Shilpa
    Shilpa avatar
    43 posts
    Member since:
    Dec 2015

    Posted 28 Jan Link to this post

    Hi,

     I am using a RadCartesianChart for displaying ScatteredLineSeries. Here is my Xaml.

    <telerik:RadCartesianChart.Behaviors>
                   <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both" PanMode="Both" />
                   <telerik:ChartTooltipBehavior />
               </telerik:RadCartesianChart.Behaviors>

      How can i change the cursor on Zoom and Pan?

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 29 Jan Link to this post

    Hi Shilpa,

    We are a bit unsure what your question is. Usually the cursor is associated with some element. For example, you may want the cursor to change when the mouse is over some Border element. Do you want to change the cursor when the mouse is over the plot area? Or perhaps when it is over the pan-zoom-bar? Please give us more details about this.

    Regards,
    Petar Marchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Reilly
    Reilly avatar
    3 posts
    Member since:
    Oct 2012

    Posted 01 Sep Link to this post

    If I add the left mouse "key combination" to the ChartPanAndZoomBehavior.DragToZoomKeyCombination(), I'd really like to see the "hand" icon whilst panning. That is what is being asked here.

     

  5. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 02 Sep Link to this post

    Hi Reilly,

    Thank you for the clarifications. We do not have such a feature out-of-the-box, but it should be relatively easy to plug in such logic. I am attaching a small project that demonstrates a custom class with one attached property - PanCursor. Set this property to the chart and it should work as you expect.

    Regards,
    Petar Marchev
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. Reilly
    Reilly avatar
    3 posts
    Member since:
    Oct 2012

    Posted 02 Sep Link to this post

    Petar,

    That works very well! Thanks a lot!

    It might be a new feature to consider: the ability to specify a cursor. Or including this behavior in the distribution.

    Regards,

    -John Reilly.

  7. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 07 Sep Link to this post

    Hello Reilly,

    You do have a point. I have logged this feature request here where you can vote and track its status. I have also update your Telerik points! Thank you!

    Regards,
    Petar Marchev
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready