InputLanguageManager.Current Property

Gets the input language manager associated with the current context.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public static InputLanguageManager Current { get; }

Property Value

Type: System.Windows.Input.InputLanguageManager
An InputLanguageManager object associated with the current context.
This property has no default value.

The following example demonstrates how to use an InputLanguageManager to access the language manager associated with the current context.

this.Dispatcher.Thread.CurrentCulture.Name.ToString();
InputLanguageManager.SetInputLanguage(myTextBox, CultureInfo.CreateSpecificCulture("fr"));
tb2.Text = "Available Input Languages:";
lb1.ItemsSource = InputLanguageManager.Current.AvailableInputLanguages;
tb3.Text = "Input Language of myTextBox is " + InputLanguageManager.GetInputLanguage(myTextBox).ToString();
tb4.Text = "CurrentCulture is Set to " + this.Dispatcher.Thread.CurrentCulture.Name.ToString();

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft