InputLanguageManager.AvailableInputLanguages Property

Gets an enumerator for currently available input languages.

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

public IEnumerable AvailableInputLanguages { get; }

Property Value

Type: System.Collections.IEnumerable
An enumerator for currently available input languages, or null if no input languages are available.
This property has no default value.

The following example demonstrates how to use an InputLanguageManager to enumerate the available input languages.

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