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

适用于