Share via


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

要設定的屬性值。

例外狀況

inputElementnull

inputElement 不是 DependencyObject

適用於