InkCanvas.UseCustomCursor Property

Definition

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

C#
public bool UseCustomCursor { get; set; }

Property Value

true if the InkCanvas is using a custom cursor; otherwise, false.

Examples

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

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

Remarks

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.

Applies to

Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10