Compartir a través de


InputLanguageManager.Current Propiedad

Definición

Obtiene el administrador de idiomas de entrada asociado al contexto actual.

public:
 static property System::Windows::Input::InputLanguageManager ^ Current { System::Windows::Input::InputLanguageManager ^ get(); };
public static System.Windows.Input.InputLanguageManager Current { get; }
static member Current : System.Windows.Input.InputLanguageManager
Public Shared ReadOnly Property Current As InputLanguageManager

Valor de propiedad

Objeto InputLanguageManager asociado al contexto actual.

Esta propiedad no tiene ningún valor predeterminado.

Ejemplos

En el ejemplo siguiente se muestra cómo usar un InputLanguageManager para tener acceso al administrador de idioma asociado al contexto actual.

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();
Me.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 " & Me.Dispatcher.Thread.CurrentCulture.Name.ToString()

Se aplica a