WindowChrome.IsHitTestVisibleInChrome Attached Property

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)

Syntax

'Declaration
See GetIsHitTestVisibleInChrome, SetIsHitTestVisibleInChrome
See GetIsHitTestVisibleInChrome, SetIsHitTestVisibleInChrome
See GetIsHitTestVisibleInChrome, SetIsHitTestVisibleInChrome
See GetIsHitTestVisibleInChrome, SetIsHitTestVisibleInChrome
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.

Dependency Property Information

Identifier field

IsHitTestVisibleInChromeProperty

Metadata properties set to true

None

Remarks

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.

.NET Framework Security

See Also

Reference

WindowChrome Class

Microsoft.Windows.Shell Namespace