diff --git a/Ink Canvas/InkCanvasForClass.csproj b/Ink Canvas/InkCanvasForClass.csproj index 4654cf3..fdd3406 100644 --- a/Ink Canvas/InkCanvasForClass.csproj +++ b/Ink Canvas/InkCanvasForClass.csproj @@ -29,17 +29,17 @@ embedded bin\$(Configuration)\ - False + True embedded bin\$(Configuration)\ - False + True embedded bin\$(Configuration)\ - False + True Resources\icc.ico @@ -146,6 +146,7 @@ + diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml index 0ab968c..1a09732 100644 --- a/Ink Canvas/MainWindow.xaml +++ b/Ink Canvas/MainWindow.xaml @@ -58,7 +58,7 @@ - + diff --git a/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs b/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs index 9640bae..bcd4c14 100644 --- a/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs +++ b/Ink Canvas/MainWindow_cs/MW_FloatingBarIcons.cs @@ -1676,7 +1676,7 @@ namespace Ink_Canvas { AnimationsHelper.HideWithSlideAndFade(BlackboardRightSide); SaveStrokes(true); - //ClearStrokes(true); + ClearStrokes(true); RestoreStrokes(); if (BtnSwitchTheme.Content.ToString() == "浅色") { diff --git a/Ink Canvas/MainWindow_cs/MW_PPT.cs b/Ink Canvas/MainWindow_cs/MW_PPT.cs index ea2b050..8fa804e 100644 --- a/Ink Canvas/MainWindow_cs/MW_PPT.cs +++ b/Ink Canvas/MainWindow_cs/MW_PPT.cs @@ -402,7 +402,6 @@ namespace Ink_Canvas { LogHelper.WriteLogToFile("PowerPoint Application Slide Show Begin", LogHelper.LogType.Event); await Application.Current.Dispatcher.InvokeAsync(() => { - if (currentMode != 0) ImageBlackboard_MouseUp(null, null); //调整颜色 var screenRatio = SystemParameters.PrimaryScreenWidth / SystemParameters.PrimaryScreenHeight; @@ -494,24 +493,27 @@ namespace Ink_Canvas { if (Settings.PowerPointSettings.IsShowCanvasAtNewSlideShow && !Settings.Automation.IsAutoFoldInPPTSlideShow && GridTransparencyFakeBackground.Background == Brushes.Transparent && !isFloatingBarFolded) { - if (currentMode != 0) { - currentMode = 0; - GridBackgroundCover.Visibility = Visibility.Collapsed; - AnimationsHelper.HideWithSlideAndFade(BlackboardLeftSide); - AnimationsHelper.HideWithSlideAndFade(BlackboardCenterSide); - AnimationsHelper.HideWithSlideAndFade(BlackboardRightSide); - - //SaveStrokes(); - ClearStrokes(true); - - BtnSwitch.Content = BtnSwitchTheme.Content.ToString() == "浅色" ? "黑板" : "白板"; - StackPanelPPTButtons.Visibility = Visibility.Visible; - } - BtnHideInkCanvas_Click(BtnHideInkCanvas, null); } - ClearStrokes(true); + if (currentMode != 0) + { + //currentMode = 0; + //GridBackgroundCover.Visibility = Visibility.Collapsed; + //AnimationsHelper.HideWithSlideAndFade(BlackboardLeftSide); + //AnimationsHelper.HideWithSlideAndFade(BlackboardCenterSide); + //AnimationsHelper.HideWithSlideAndFade(BlackboardRightSide); + + //SaveStrokes(); + //ClearStrokes(true); + + //BtnSwitch.Content = BtnSwitchTheme.Content.ToString() == "浅色" ? "黑板" : "白板"; + //StackPanelPPTButtons.Visibility = Visibility.Visible; + ImageBlackboard_MouseUp(null,null); + BtnHideInkCanvas_Click(BtnHideInkCanvas, null); + } + + //ClearStrokes(true); BorderFloatingBarMainControls.Visibility = Visibility.Visible; @@ -527,7 +529,9 @@ namespace Ink_Canvas { if (!isFloatingBarFolded) { new Thread(new ThreadStart(() => { Thread.Sleep(100); - Application.Current.Dispatcher.Invoke(() => { ViewboxFloatingBarMarginAnimation(60); }); + Application.Current.Dispatcher.Invoke(() => { + ViewboxFloatingBarMarginAnimation(60); + }); })).Start(); } }); @@ -599,18 +603,20 @@ namespace Ink_Canvas { ViewBoxStackPanelMain.Margin = new Thickness(10, 10, 10, 55); if (currentMode != 0) { - currentMode = 0; - GridBackgroundCover.Visibility = Visibility.Collapsed; - AnimationsHelper.HideWithSlideAndFade(BlackboardLeftSide); - AnimationsHelper.HideWithSlideAndFade(BlackboardCenterSide); - AnimationsHelper.HideWithSlideAndFade(BlackboardRightSide); + + //GridBackgroundCover.Visibility = Visibility.Collapsed; + //AnimationsHelper.HideWithSlideAndFade(BlackboardLeftSide); + //AnimationsHelper.HideWithSlideAndFade(BlackboardCenterSide); + //AnimationsHelper.HideWithSlideAndFade(BlackboardRightSide); //SaveStrokes(); - ClearStrokes(true); + //ClearStrokes(true); //RestoreStrokes(true); - BtnSwitch.Content = BtnSwitchTheme.Content.ToString() == "浅色" ? "黑板" : "白板"; - StackPanelPPTButtons.Visibility = Visibility.Visible; + //BtnSwitch.Content = BtnSwitchTheme.Content.ToString() == "浅色" ? "黑板" : "白板"; + //StackPanelPPTButtons.Visibility = Visibility.Visible; + CloseWhiteboardImmediately(); + currentMode = 0; } ClearStrokes(true); diff --git a/Ink Canvas/MainWindow_cs/MW_Settings.cs b/Ink Canvas/MainWindow_cs/MW_Settings.cs index 5f4bbf5..0785d27 100644 --- a/Ink Canvas/MainWindow_cs/MW_Settings.cs +++ b/Ink Canvas/MainWindow_cs/MW_Settings.cs @@ -1359,6 +1359,7 @@ namespace Ink_Canvas { Settings.Advanced.IsLogEnabled = true; Settings.Advanced.IsSecondConfirmWhenShutdownApp = false; Settings.Advanced.IsEnableEdgeGestureUtil = false; + Settings.Advanced.EdgeGestureUtilOnlyAffectBlackboardMode = false; Settings.Advanced.IsEnableFullScreenHelper = false; Settings.Advanced.IsEnableForceFullScreen = false; Settings.Advanced.IsEnableDPIChangeDetection = false; diff --git a/Ink Canvas/Properties/AssemblyInfo.cs b/Ink Canvas/Properties/AssemblyInfo.cs index 2785d53..c4d6a88 100644 --- a/Ink Canvas/Properties/AssemblyInfo.cs +++ b/Ink Canvas/Properties/AssemblyInfo.cs @@ -49,5 +49,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("5.0.5.0")] -[assembly: AssemblyFileVersion("5.0.5.0")] \ No newline at end of file +[assembly: AssemblyVersion("5.0.5.1")] +[assembly: AssemblyFileVersion("5.0.5.1")] \ No newline at end of file diff --git a/Ink Canvas/Resources/Settings.cs b/Ink Canvas/Resources/Settings.cs index ad524af..0320d0a 100644 --- a/Ink Canvas/Resources/Settings.cs +++ b/Ink Canvas/Resources/Settings.cs @@ -364,6 +364,9 @@ namespace Ink_Canvas [JsonProperty("isEnableEdgeGestureUtil")] public bool IsEnableEdgeGestureUtil { get; set; } = false; + [JsonProperty("edgeGestureUtilOnlyAffectBlackboardMode")] + public bool EdgeGestureUtilOnlyAffectBlackboardMode { get; set; } = false; + [JsonProperty("isEnableForceFullScreen")] public bool IsEnableForceFullScreen { get; set; } = false;