VisualElement.InputTransparent 屬性

定義

取得或設定值,指出這個專案是否會在用戶互動期間響應點擊測試。 這是可繫結屬性。

public:
 property bool InputTransparent { bool get(); void set(bool value); };
public bool InputTransparent { get; set; }
member this.InputTransparent : bool with get, set
Public Property InputTransparent As Boolean

屬性值

false 如果專案及其子系應該接收輸入,則為 ; true 如果專案及其子系都不應該接收輸入,而是應該改為將輸入傳遞至目前視覺專案後方的專案。 預設為 false

備註

預設值是 false

將 設定 InputTransparenttrue 可讓專案看不見觸控和指標輸入。 輸入會傳遞至在輸入透明元素後方的第一個非輸入透明元素。

適用於

另請參閱