private void InitializeClapGesture() { var clap = new ClapGesture(); clap.Detected += (sender, e) => { Logger.InfoFormat("Clap detected"); ClapVisibility = Visibility.Visible; var controller = ImageBehavior.GetAnimationController(ClapImage); controller.Play(); }; _gestureDetector.RegisterGesture(clap); }
private void InitializeClapGesture() { var clap = new ClapGesture(); clap.Detected += (sender, e) => { Logger.InfoFormat("Clap detected"); ClapVisibility = Visibility.Visible; var controller = ImageBehavior.GetAnimationController(ClapImage); controller.Play(); }; _gestureDetector.RegisterGesture(clap); }