Diagram Pan mouse cursor

3 posts, 1 answers
  1. Manuel
    Manuel avatar
    32 posts
    Member since:
    Sep 2013

    Posted 07 Aug 2014 Link to this post

    Is there a way to change the mouse cursor for the pan operation (actually the default one is "hand")?
  2. Answer
    Martin Ivanov
    Martin Ivanov avatar
    1402 posts

    Posted 12 Aug 2014 Link to this post

    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;

    I hope this helps.

    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.
  3. Manuel
    Manuel avatar
    32 posts
    Member since:
    Sep 2013

    Posted 12 Aug 2014 in reply to Martin Ivanov Link to this post

    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!
Back to Top