FrameworkContentElement.ForceCursor Property


Gets or sets a value indicating whether this FrameworkContentElement should force the user interface (UI) to render the cursor as declared by this instance's Cursor property.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Property ForceCursor As Boolean

Property Value

Type: System.Boolean

true to force cursor presentation while over this element to use this instance's setting for the cursor (including on all child elements); otherwise false. The default value is false.

Setting this property to true will override the cursor preferences established by child elements. Doing so in general application UI might be confusing for the user, particularly if child elements are attempting to specify cursors. Setting ForceCursor is more appropriate in control subclassing or compositing scenarios.

Identifier field


Metadata properties set to true


The following example forces the cursor while over the element.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft