private void InitArabicSft() { for (int i = 1; i <= 34; i++) { var key = KeyboardGrid.FindName("Key" + i.ToString()); if (key != null) { if (key.GetType() == typeof(Button)) { InitKey((Button)key, CoptLib.Language.Arabic, true, i); } } } return; }
private void InitCopticSft() { InputBox.FontFamily = Copt; for (int i = 1; i <= 34; i++) { var key = KeyboardGrid.FindName("Key" + i.ToString()); if (key != null) { if (key.GetType() == typeof(Button)) { InitKey((Button)key, "copt:sft", i); } } } return; }
private void InitArabic() { InputBox.FontFamily = Segoe; for (int i = 1; i <= 34; i++) { var key = KeyboardGrid.FindName("Key" + i.ToString()); if (key != null) { if (key.GetType() == typeof(Button)) { InitKey((Button)key, "arabic", i); } } } return; }
// Gets all the keyboard buttons in the keyboardgrid private IEnumerable <KeyboardButton> GetKeyboardButtons() { return(KeyboardGrid.GetChildrenOfType <KeyboardButton>()); }