How To Zoom in WPF
Posted: 27 July 2011 05:34 AM   [ Ignore ]
Rank
Joined  2011-07-11
Total Posts:  11
New Member

Hi everyone,

I’m working on graphs and in my project I would like to add multitouch capabilities, I used graphsharp and wpfextensions in my project.

However when I want to add zooming capabilities, normally in all sources it is shown as a matrix and etc.

I wonder is there any idea that I can use deltaManipulation.Scale.X, deltaManipulation.Scale.Y variables which come from ManipulationDelta event to have a number for zooming.

Because for zooming wpfextensions project easily handle when I call “zoomControl.Zoom = 0.5;” so by using scalex and scaley I need to have an integer value to zoom.

Or if anyone knows in wpfextensions’ zoom events, how should I call zoomControl.?? with which variables ?

Thanks.

Profile
 
 
Posted: 27 July 2011 06:21 PM   [ Ignore ]   [ # 1 ]
Avatar
RankRankRankRank
Joined  2006-11-09
Total Posts:  1499
Administrator

Have you looked into how Surface 2.0 SDK does it? It really depends which way your getting input into your application.

 Signature 

~

Profile
 
 
Posted: 28 July 2011 09:00 AM   [ Ignore ]   [ # 2 ]
Rank
Joined  2011-07-11
Total Posts:  11
New Member

Actually because I referenced two project (graphsharp and wpfextensions), I do not know what is happening for example when user clicks mouse and drags the verticies and etc.

If I can track the mouse events or method, I may find a solution for my problem. But I don’t know how should I find what is happening when mousedown event fired, because projects have a lot of source code.

How should I find these events or methods, can anybody give advice ?

Profile