diff --git a/Ink Canvas/MainWindow.xaml.cs b/Ink Canvas/MainWindow.xaml.cs index 75e8e36..99fec9b 100644 --- a/Ink Canvas/MainWindow.xaml.cs +++ b/Ink Canvas/MainWindow.xaml.cs @@ -194,6 +194,10 @@ namespace Ink_Canvas { BtnWhiteBoardSwitchPrevious.IsEnabled = CurrentWhiteboardIndex != 1; BorderInkReplayToolBox.Visibility = Visibility.Collapsed; + // 提前加载IA库,优化第一笔等待时间 + var strokeEmpty = new StrokeCollection(); + InkRecognizeHelper.RecognizeShape(strokeEmpty); + SystemEvents.DisplaySettingsChanged += SystemEventsOnDisplaySettingsChanged; }