InkCanvas.UseCustomCursor Property

Gets or sets a Boolean value that indicates whether to override standard InkCanvas cursor functionality to support a custom cursor.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public bool UseCustomCursor { get; set; }
<object UseCustomCursor="bool" .../>

Property Value

Type: System.Boolean
true if the InkCanvas is using a custom cursor; otherwise, false.

The InkCanvas will change the cursor style to reflect the current EditingMode while the cursor is within the bounds of the InkCanvas. If this behavior is not wanted, for example, when the InkCanvas uses a custom cursor, set this property to true, and the cursor will not change with the EditingMode.

The following example demonstrates how to use a cursor that is different than the one supplied by the InkCanvas.

inkCanvas1.UseCustomCursor = true;
inkCanvas1.Cursor = Cursors.Pen;

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft