WindowChrome.SetIsHitTestVisibleInChrome(IInputElement, Boolean) 方法

定义

设置指定输入元素上的 IsHitTestVisibleInChrome 附加属性的值。Sets the value of the IsHitTestVisibleInChrome attached property on the specified input element.

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 附加属性的元素。The element on which to set the IsHitTestVisibleInChrome attached property.

hitTestVisible
Boolean

要设置的属性值。The property value to set.

异常

inputElementnullinputElement is null.

inputElement 不是 DependencyObjectinputElement is not a DependencyObject.

适用于