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); }
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); }
private void SetupSelectionContext(TrackingEllipseCanvas canvas, MoveableBodyPart lHand, MoveableBodyPart rHand) { LeftKinectBox = new HighlightCanvasItemContext(canvas); RightKinectBox = new HighlightCanvasItemContext(canvas); }