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

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