InputLanguageManager Class
.NET Framework 4.5
Provides facilities for managing input languages in Windows Presentation Foundation (WPF).
Namespace: System.Windows.Input
Assembly: PresentationCore (in PresentationCore.dll)
The InputLanguageManager type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AvailableInputLanguages | Gets an enumerator for currently available input languages. |
![]() ![]() | Current | Gets the input language manager associated with the current context. |
![]() | CurrentInputLanguage | Gets or sets the current input language. |
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) |
| Name | Description | |
|---|---|---|
![]() | InputLanguage | Gets or sets the preferred input language for the associated dependency object. |
![]() | RestoreInputLanguage | Gets or sets a value that indicates whether or not the previously active input language should be restored when the associated dependency object looses the input focus. |
| Name | Description | |
|---|---|---|
![]() | CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetInputLanguage | Returns the value of the InputLanguage attached property for a specified dependency object. |
![]() ![]() | GetRestoreInputLanguage | Returns the value of RestoreInputLanguage attached property for a specified dependency object. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | RegisterInputLanguageSource | Registers an input language source with the InputLanguageManager. |
![]() | ReportInputLanguageChanged | Report the completion of a change of input language to the InputLanguageManager. |
![]() | ReportInputLanguageChanging | Report the initiation of a change of input language to the InputLanguageManager. |
![]() ![]() | SetInputLanguage | Sets the value of the InputLanguage attached property on the specified dependency object. |
![]() ![]() | SetRestoreInputLanguage | Sets the value of the RestoreInputLanguage dependency property on the specified dependency object. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
| Name | Description | |
|---|---|---|
![]() | InputLanguageChanged | Occurs when a change of input language is completed. |
![]() | InputLanguageChanging | Occurs when a change of input language is initiated. |
| Name | Description | |
|---|---|---|
![]() ![]() | InputLanguageProperty | Identifies the InputLanguage attached property. |
![]() ![]() | RestoreInputLanguageProperty | Identifies the RestoreInputLanguage attached property. |
The following example demonstrates how to use an InputLanguageManager to set the input language of a TextBox element.
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();
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

