0

Touch events

Anonymous 5 years ago 0
This discussion was imported from CodePlex

JohnSourcer wrote at 2012-12-06 14:25:

Thanks for a fantastic framework. It's changed my approach to 3D on WPF. I'm not clear on how to handled touch events. Do we need to wire them up ourselves? I see manipulation events firing if I add them to the user control containing a HelixViewport3D. Mouse manipulations work 100%.

Currently, I'm doing: 

 
 <h:HelixViewport3D RotationSensitivity="0.3" InfiniteSpin="True" x:Name="HelixViewport3D" Height="1100" IsManipulationEnabled="True" ManipulationStarted="GlobeManipulationStarted"...


protected void GlobeManipulationStarted(object sender, ManipulationStartedEventArgs e)
        {
            base.OnManipulationStarted(e);
//handle manipulations
            e.Handled = true;
        }...

Is this the correct approach?


balameeta wrote at 2013-03-27 17:42:

Hi there.

Use this code for multi-touch manipulation of the scene to work:
viewPortName.CameraController.TouchMode = TouchMode.Rotating;
Amun