Ejemplo n.º 1
0
        public void Initialize(MoveableBodyPart leftHand, MoveableBodyPart rightHand, HighlightCanvas canvas)
        {
            LeftColorBox = new HighlightCanvasItemContext(canvas);
            RightColorBox = new HighlightCanvasItemContext(canvas);

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