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

Change the cursor on zoom and pan

5 Answers 239 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Shilpa
Top achievements
Rank 1
Shilpa asked on 28 Jan 2016, 09:37 AM

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?

5 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 29 Jan 2016, 12:25 PM
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
0
Reilly
Top achievements
Rank 1
Veteran
answered on 01 Sep 2016, 06:15 PM

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.

 

0
Petar Marchev
Telerik team
answered on 02 Sep 2016, 08:37 AM
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.
0
Reilly
Top achievements
Rank 1
Veteran
answered on 02 Sep 2016, 09:15 AM

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.

0
Petar Marchev
Telerik team
answered on 07 Sep 2016, 07:31 AM
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.
Tags
ChartView
Asked by
Shilpa
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Reilly
Top achievements
Rank 1
Veteran
Share this question
or