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

Diagram Pan mouse cursor

2 Answers 141 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 07 Aug 2014, 12:53 PM
Is there a way to change the mouse cursor for the pan operation (actually the default one is "hand")?

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 12 Aug 2014, 08:03 AM
Hi Manuel,

The cursors used with the different operations in the RadDiagram are stored in a static class called DiagramCursors. In order to change the cursors when you panning, you can just change the value of the DiagramCursors.Panning property before the InitializeComponent() method of your window is called. Here is an example:

public MainWindow()
{
    DiagramCursors.Panning = Cursors.Cross;
    InitializeComponent();
}

I hope this helps.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Manuel
Top achievements
Rank 1
answered on 12 Aug 2014, 04:31 PM
Great, it works like a charm!

I was doing a terrible hack on the PreviewPan event, your solution is way way better.
diagram.Cursor = Cursors.ScrollAll;

Thank you!
Tags
Diagram
Asked by
Manuel
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Manuel
Top achievements
Rank 1
Share this question
or