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

Move diagram with middle mouse

2 Answers 193 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
nicolasf
Top achievements
Rank 2
nicolasf asked on 22 Nov 2017, 08:32 PM

Hi,

I would like to use middle mouse to move viewport ?

Can you help me please ?

Thanks,

Nicolas

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 27 Nov 2017, 11:31 AM
,

Using button in order to pan the diagram is not supported out of the box. You can achieve this behavior using custom implementation. Basically, you can subscribe to the MouseDown and MouseUp events of the RadDiagram. In the event handlers, you can check the current press button and change the  property of the diagram.

For your convenience, I have created sample project which demonstrates this approach. You can additionally modify this project so it fits in your main application.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
nicolasf
Top achievements
Rank 2
answered on 27 Nov 2017, 12:45 PM
thanks for your help, i've already subscribe to this events but i didn't know how to call the good tool but with your example it 's easy ;)
Tags
Diagram
Asked by
nicolasf
Top achievements
Rank 2
Answers by
Dinko | Tech Support Engineer
Telerik team
nicolasf
Top achievements
Rank 2
Share this question
or