共用方式為


InputMethod.IsInputMethodEnabled Attached Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that determines whether input method editors can be used to provide input for the control where the property is attached.

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

Syntax

'Declaration
See GetIsInputMethodEnabled, SetIsInputMethodEnabled
See GetIsInputMethodEnabled, SetIsInputMethodEnabled
<object InputMethod.IsInputMethodEnabled="bool"/>

Property Value

Type: System.Boolean
true if input method editors can be used to provide input; otherwise, false.

Remarks

Dependency property identifier field: IsInputMethodEnabledProperty

The InputMethod.IsInputMethodEnabled attached property is used to disable input method editors for the special case of a text box control being used as a password box.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.