FrameworkElement.InputScope Property


取得或設定此 FrameworkElement 使用的輸入內容。Gets or sets the context for input used by this FrameworkElement.

 property System::Windows::Input::InputScope ^ InputScope { System::Windows::Input::InputScope ^ get(); void set(System::Windows::Input::InputScope ^ value); };
public System.Windows.Input.InputScope InputScope { get; set; }
member this.InputScope : System.Windows.Input.InputScope with get, set
Public Property InputScope As InputScope

Property Value


輸入範圍,可修改替代輸入法之輸入的解譯方式。The input scope, which modifies how input from alternative input methods is interpreted. 預設值為 null (採用預設的命令處理方式)。The default value is null (which results in a default handling of commands).


此相依性屬性會繼承屬性值。This dependency property inherits property values. 如果有子專案,而沒有其他值可供透過本機值或樣式建立的 InputScope,則屬性系統會將值設定為最接近的上階專案的 InputScope 值,此值會被指派。If there are child elements without other values for InputScope established through local values or styles, then the property system will set the value to be the InputScope value of the nearest ancestor element with this value assigned.

雖然會列出 XAMLXAML 語法使用方式,而且在語法上是允許的,但在 XAMLXAML 中設定這個屬性並不常見。Although a XAMLXAML syntax usage is listed and is syntactically allowed, setting this property in XAMLXAML is not common.

相依性屬性資訊Dependency Property Information

識別碼欄位Identifier field InputScopeProperty
設定為 true 的中繼資料屬性Metadata properties set to true Inherits

Applies to

See also