Example #1
0
 /// <summary>
 /// This event handler deals with the changing of input language - it remembers the new language, so if the user
 /// switched input language, then search box lost focus, when we regain focus, use the new language the user picked.
 /// </summary>
 private void Current_InputLanguageChanged(object sender, InputLanguageEventArgs e)
 {
     if (SearchTextBox.IsFocused)
     {
         previousLanguage = e.NewLanguage;
     }
 }
Example #2
0
            public void LanguageChanged(object sender, swi.InputLanguageEventArgs e)
            {
                var h = Handler;

                if (h != null)
                {
                    h.Control.Language = CurrentLanguage;
                }
            }
Example #3
0
 // InputLanguageChanged handler. 
 private static void OnInputLanguageChanged(object sender, InputLanguageEventArgs e)
 { 
     TextSelection.OnInputLanguageChanged(e.NewLanguage);
 }
Example #4
0
		private void InputLanguage_InputLanguageChanged(Object sender, InputLanguageEventArgs e)
		{
			this.ConstructCaretGeometry();
		}
Example #5
0
 private void InputLanguageChanged(object sender, InputLanguageEventArgs e)
 {
     Language = e.NewLanguage.TwoLetterISOLanguageName.ToUpper();
 }