UIElement.IsHitTestVisible 屬性

定義

取得或設定這個 UIElement 的包含區域是否可以傳回 true 值來進行點擊測試。

public:
 property bool IsHitTestVisible { bool get(); void set(bool value); };
bool IsHitTestVisible();

void IsHitTestVisible(bool value);
public bool IsHitTestVisible { get; set; }
var boolean = uIElement.isHitTestVisible;
uIElement.isHitTestVisible = boolean;
Public Property IsHitTestVisible As Boolean
<uiElement IsHitTestVisible="bool"/>

屬性值

Boolean

bool

如果此UIElement的包含區域可用於點擊測試,則為true;否則為false。 預設值為 True

適用於