private void BtnKeyWidth_Click(object sender, RoutedEventArgs e) { if (currentWidth == KeyWidth.Narrow) { currentWidth = KeyWidth.Normal; } else if (currentWidth == KeyWidth.Normal) { currentWidth = KeyWidth.Touch; } else if (currentWidth == KeyWidth.Touch) { currentWidth = KeyWidth.Narrow; } KB.UpdateKeyWidth(currentWidth); ScrollKeyboard(); }