InkCanvas.UseCustomCursor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a Boolean value that indicates whether to override standard InkCanvas cursor functionality to support a custom cursor.
public:
property bool UseCustomCursor { bool get(); void set(bool value); };
public bool UseCustomCursor { get; set; }
member this.UseCustomCursor : bool with get, set
Public Property UseCustomCursor As Boolean
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.
inkCanvas1.UseCustomCursor = true;
inkCanvas1.Cursor = Cursors.Pen;
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기