InputMethod.SetPreferredImeState Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the value for the SetPreferredImeState attached property on the specified object.
Assembly: System.Windows (in System.Windows.dll)
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.
| Exception | Condition |
|---|---|
| ArgumentException | target is not a TextBox. |
| ArgumentNullException | target is null. |
Show: