WindowChrome.SetIsHitTestVisibleInChrome Method
Sets the value of the IsHitTestVisibleInChrome attached property on the specified input element.
Namespace: Microsoft.Windows.Shell
Assembly: Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)
Syntax
'Declaration
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
)
Parameters
- inputElement
Type: System.Windows.IInputElement
The element on which to set the IsHitTestVisibleInChrome attached property.
- hitTestVisible
Type: System.Boolean
The property value to set.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | inputElement is nulla null reference (Nothing in Visual Basic). |
ArgumentException | inputElement is not a DependencyObject. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.