This documentation is archived and is not being maintained.

WindowChrome.IsHitTestVisibleInChrome Attached Property

Visual Studio 2010

Gets or sets a value that indicates whether WPF hit-testing is enabled on the part of an element that is in the non-client area of a window.

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)

See GetIsHitTestVisibleInChrome, SetIsHitTestVisibleInChrome

Property Value

Type: System.Boolean
true if hit testing is enabled in the non-client area; otherwise, false. The registered default is false. For more information about what can influence the value, see Dependency Property Value Precedence.

Identifier field


Metadata properties set to true


The values of this dependency property are inherited by child elements.

By default, the parts of any visual elements that are within the non-client area of the window are not interactive. To enable interactive elements in the non-client area, attach the IsHitTestVisibleInChrome attached property to the element and set it to true.