语言

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

适用于