語言

WindowChrome.SetIsHitTestVisibleInChrome(IInputElement, Boolean) 方法

定義

設定指定輸入元素附加屬性的值 IsHitTestVisibleInChrome 。

public:
 static void SetIsHitTestVisibleInChrome(System::Windows::IInputElement ^ inputElement, bool hitTestVisible);
public static void SetIsHitTestVisibleInChrome(System.Windows.IInputElement inputElement, bool hitTestVisible);
static member SetIsHitTestVisibleInChrome : System.Windows.IInputElement * bool -> unit
Public Shared Sub SetIsHitTestVisibleInChrome (inputElement As IInputElement, hitTestVisible As Boolean)

參數

inputElement
IInputElement

用來設定 IsHitTestVisibleInChrome 附加屬性的元素。

hitTestVisible
Boolean

要設定的房產價值。

例外狀況

inputElement 是 null。

inputElement 不是 DependencyObject。

適用於