title: Kinect properly statement of drawing function
body: <p>i started the journey with the kinect and i have some sorts of problems, i try to learn from a tutorials and i choose this one <a href="http://msdn.microsoft.com/en-us/library/jj131025.aspx" rel="nofollow">here</a>, but i have problem with declaration of DrawTrackedBoneLine and DrawClipedEdges how should be declared to work properly </p>
  
  <pre><code>private void DrawBone(Joint jointFrom, Joint jointTo)
      {
          Brush bone = null;
          Brush TrackedBone = new SolidColorBrush(Color.FromArgb(132, 54, 63, 78));
          Brush NonTracked = new SolidColorBrush(Color.FromArgb(45, 36, 23, 12));
          if (jointFrom.TrackingState == JointTrackingState.NotTracked ||
          jointTo.TrackingState == JointTrackingState.NotTracked)
          {
              return; // nothing to draw, one of the joints is not tracked
          }
  
          if (jointFrom.TrackingState == JointTrackingState.Inferred ||
          jointTo.TrackingState == JointTrackingState.Inferred)
          {
  
             DrawNonTrackedBoneLine (jointFrom.Position, jointTo.Position);  // Draw thin lines if either one of the joints is inferred
          }
  
          if (jointFrom.TrackingState == JointTrackingState.Tracked &amp;&amp;
          jointTo.TrackingState == JointTrackingState.Tracked)
          {
              DrawTrackedBoneLine(jointFrom.Position, jointTo.Position);  // Draw bold lines if the joints are both tracked
          }
      }
  
      private void RenderClippedEdges(Skeleton skeleton)
      {  
  
          if (skeleton.ClippedEdges.HasFlag(FrameEdges.Bottom))
          {
              DrawClippedEdges(FrameEdges.Bottom); // Make the border red to show the user is reaching the border
          }
  
          if (skeleton.ClippedEdges.HasFlag(FrameEdges.Top))
          {
              DrawClippedEdges(FrameEdges.Top);
          }
  
          if (skeleton.ClippedEdges.HasFlag(FrameEdges.Left))
          {
              DrawClippedEdges(FrameEdges.Left);
          }
  
          if (skeleton.ClippedEdges.HasFlag(FrameEdges.Right))
          {
              DrawClippedEdges(FrameEdges.Right);
          }
      }
  </code></pre>
  
  <p>I siting and trying with brushes but its not work, it says "The name 'DrawTrackedBoneLine' does not exist in the current context" its obvious that visual is right but how to fix it </p>