private void Joystick_Click(object sender, RoutedEventArgs e) { var jc = new JoystickConfig(); jc.ShowDialog(); }