예제 #1
0
        public void Initialize(MoveableBodyPart leftHand, MoveableBodyPart rightHand, HighlightCanvas canvas)
        {
            LeftColorBox = new HighlightCanvasItemContext(canvas);
            RightColorBox = new HighlightCanvasItemContext(canvas);

            SpecifyActions(leftHand, rightHand);
        }
예제 #2
0
 private static void SetupHandler(UIElement element, HighlightCanvasItemContext context)
 {
     context.SetOn(element);
 }
예제 #3
0
 public WhenAction Leaves(HighlightCanvasItemContext element)
 {
     HighlightCanvasItemContextHandlers handler = element.When(_bodyPart);
     return new WhenAction((a) => handler.Unselected += a);
 }
예제 #4
0
 public static void SetHandler(DependencyObject obj, HighlightCanvasItemContext value)
 {
     obj.SetValue(HandlerProperty, value);
 }
예제 #5
0
 private void SetupSelectionContext(TrackingEllipseCanvas canvas, MoveableBodyPart lHand, MoveableBodyPart rHand)
 {
     LeftKinectBox = new HighlightCanvasItemContext(canvas);
     RightKinectBox = new HighlightCanvasItemContext(canvas);
 }