michaelgreenwald michaelgree​nwald

Niner since 2011


  • Skeletal Tracking Fundamentals (Beta 2 SDK)

    Thanks, these tutorials are great.

    How would I go about changing the color of an ellipse with hand movement? Here's what I have so far:

    private void SetEllipseProperties(FrameworkElement ellipse, Joint joint)
                var scaledJoint = joint.ScaleTo(640, 480, .5f, .5f);
                // change position
                Canvas.SetLeft(ellipse, scaledJoint.Position.X);
                Canvas.SetTop(ellipse, scaledJoint.Position.Y);
                //change color
                ellipse.Fill = someColorFunction(scaledJoint.Position.Y);

    but it doesn't like ellipse.Fill. It tells me "System.Windows.FrameworkElement' does not contain a definition for 'Fill' and no extension method 'Fill' accepting a first argument of type 'System.Windows.FrameworkElement' could be found (are you missing a using directive or an assembly reference?)", yet here, myEllipse.Fill is directly changed.

    I'm very new at this -- any help is appreciated!