void OnLoaded(object sender, RoutedEventArgs e) { controller = new KinectControl(() => new CanvasBodyDrawer(canvasDraw)); }
void OnLoaded(object sender, RoutedEventArgs e) { this.controller = new KinectControl(this.OnFrame); // To perform kinect controlling on this frame }