title: How to move a Helix sphere object in WPF?
body: <p>I'm new to Helix and liking it so far, I'm building a WPF app that loads the Helix viewport window inside a panel, I then instantiate a cube (CubedVisual3D) via a create button in WPF and it creates the cube, however when I go to click or drag/move it, it doesn't move around.  How do I do this? Best approach?
  <a href="https://i.stack.imgur.com/fxkmm.png" rel="nofollow noreferrer" title="myScreen">example image</a></p>
  <pre class="lang-cs prettyprint-override"><code>private void Helix_ViewPort_MouseDown(object sender, MouseButtonEventArgs e) 
  {
    Console.WriteLine(&quot;Mouse down.&quot;);
    Point mousePos = e.GetPosition(MyViewPort);          
    PointHitTestParameters hitParams = new PointHitTestParameters(mousePos);
    HitTestResult result = VisualTreeHelper.HitTest(MyViewPort, mousePos);   
  
    RayMeshGeometry3DHitTestResult rayMeshResult = result as 
    RayMeshGeometry3DHitTestResult;
          if (rayMeshResult != null)
          {
              MeshGeometry3D mesh = new MeshGeometry3D(); mesh.Positions.Add(rayMeshResult.MeshHit.Positions[rayMeshResult.VertexIndex1]);
              mesh.Positions.Add(rayMeshResult.MeshHit.Positions[rayMeshResult.VertexIndex2]);
              mesh.Positions.Add(rayMeshResult.MeshHit.Positions[rayMeshResult.VertexIndex3]);
              mesh.TriangleIndices.Add(0);
              mesh.TriangleIndices.Add(1);
              mesh.TriangleIndices.Add(2);                            
              GeometryModel3D marker = new GeometryModel3D(mesh, new DiffuseMaterial(Brushes.Blue));              
          }    
          
          Console.WriteLine(result);   
  }          
  </code></pre>