Windows Dev Center

InputMethod.SetPreferredImeState Method

Sets the value for the SetPreferredImeState attached property on the specified object.

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

public static void SetPreferredImeState(
	DependencyObject target,
	InputMethodState value
)

Parameters

target
Type: System.Windows.DependencyObject
The object on which to set the SetPreferredImeState attached property value.
value
Type: System.Windows.Input.InputMethodState
The value to set.

ExceptionCondition
ArgumentException

target is not a TextBox.

ArgumentNullException

target is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2015 Microsoft