This documentation is archived and is not being maintained.

InputLanguageManager.CurrentInputLanguage Property

Gets or sets the current input language.

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

public CultureInfo CurrentInputLanguage { get; set; }
You cannot set this property in XAML.

Property Value

Type: System.Globalization.CultureInfo
A CultureInfo object representing the currently selected input language. This property may not be set to null.
The default value is InvariantCulture.


Raised when an attempt is made to set this property to null.

The following example demonstrates how to use an InputLanguageManager to get the current input language.

InputLanguageManager.SetInputLanguage(tb1, CultureInfo.CreateSpecificCulture("fr"));
tb1.Text = "Current Input Language is " + InputLanguageManager.Current.CurrentInputLanguage.ToString();

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0