private void imageMovie_Tap(object sender, System.Windows.Input.GestureEventArgs e) { var keyboard = VisualTreeHelpers.FindName <KeyboardControl>("keyboardControl", (sender as Image).Parent); if (keyboard == null) { return; } keyboard.SwitchKeyboardVisibility(); }