add:实时笔锋及墨迹预测
This commit is contained in:
@@ -1156,6 +1156,9 @@ namespace Ink_Canvas
|
||||
Trace.WriteLine("Eraser: Overlay disabled in non-eraser mode");
|
||||
}
|
||||
}
|
||||
|
||||
if (inkCanvas1.EditingMode != InkCanvasEditingMode.Ink)
|
||||
EndInkPredictionStroke();
|
||||
}
|
||||
|
||||
#endregion Ink Canvas
|
||||
@@ -2264,6 +2267,14 @@ namespace Ink_Canvas
|
||||
SetFloatingBarHighlightPosition("select");
|
||||
}
|
||||
}
|
||||
|
||||
if (e.LeftButton == MouseButtonState.Pressed
|
||||
&& inkCanvas != null
|
||||
&& inkCanvas.EditingMode == InkCanvasEditingMode.Ink
|
||||
&& penType != 1)
|
||||
{
|
||||
BeginInkPredictionStrokeIfNeeded();
|
||||
}
|
||||
}
|
||||
|
||||
// 手写笔输入
|
||||
@@ -2271,11 +2282,13 @@ namespace Ink_Canvas
|
||||
{
|
||||
// 使用辅助方法设置光标
|
||||
SetCursorBasedOnEditingMode(sender as InkCanvas);
|
||||
BeginInkPredictionStrokeIfNeeded();
|
||||
}
|
||||
|
||||
// 手写笔抬起事件(用于橡皮擦自动切换)
|
||||
private void inkCanvas_StylusUp(object sender, StylusEventArgs e)
|
||||
{
|
||||
EndInkPredictionStroke();
|
||||
HandleEraserOperationEnded();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user