WindowChrome.SetIsHitTestVisibleInChrome 方法

设置指定输入元素上的 IsHitTestVisibleInChrome 附加属性的值。

命名空间:  Microsoft.Windows.Shell
程序集:  Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)

语法

声明
Public Shared Sub SetIsHitTestVisibleInChrome ( _
    inputElement As IInputElement, _
    hitTestVisible As Boolean _
)
public static void SetIsHitTestVisibleInChrome(
    IInputElement inputElement,
    bool hitTestVisible
)
public:
static void SetIsHitTestVisibleInChrome(
    IInputElement^ inputElement, 
    bool hitTestVisible
)
static member SetIsHitTestVisibleInChrome : 
        inputElement:IInputElement * 
        hitTestVisible:bool -> unit 
public static function SetIsHitTestVisibleInChrome(
    inputElement : IInputElement, 
    hitTestVisible : boolean
)

参数

异常

异常 条件
ArgumentNullException

inputElement 为 null。

ArgumentException

inputElement 不是 DependencyObject

.NET Framework 安全性

请参见

参考

WindowChrome 类

Microsoft.Windows.Shell 命名空间