Last active
July 6, 2021 10:37
-
-
Save Mahno74/51edfcb3a48ae1f17a7f876869e7624b to your computer and use it in GitHub Desktop.
Переключение на русский язык
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//В WPF | |
//В xaml | |
<TextBox InputLanguageManager.InputLanguage="ru-RU" /> | |
//В коде | |
InputLanguageManager.SetInputLanguage(inputTextBox, CultureInfo.CreateSpecificCulture("ru-RU")); | |
//В Windows Form | |
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(System.Globalization.CultureInfo.CreateSpecificCulture("Ru")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment