feat: 启用避免全屏助手时自动全屏处理白板和批注模式

- 进入白板/批注模式时自动全屏
- 退出时恢复工作区域大小
- 添加状态跟踪避免重复处理
- PPT放映模式和白板模式切换时正确管理全屏状态
This commit is contained in:
PrefacedCorg
2025-12-20 13:03:31 +08:00
parent 6222fabdd4
commit d5cac938c2
3 changed files with 48 additions and 0 deletions
+4
View File
@@ -107,6 +107,8 @@ namespace Ink_Canvas.Helpers
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width,
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height, true);
}), DispatcherPriority.ApplicationIdle);
_mainWindow.isFullScreenApplied = true; // 标记已应用全屏处理
}
}
else
@@ -127,6 +129,8 @@ namespace Ink_Canvas.Helpers
workingArea.X, workingArea.Y,
workingArea.Width, workingArea.Height, true);
}), DispatcherPriority.ApplicationIdle);
_mainWindow.isFullScreenApplied = false; // 标记全屏处理已还原
}
}
}