Skip to content

Refactor/mainwindow#437

Draft
PANDAJSR wants to merge 20 commits intoInkCanvasForClass:betafrom
PANDAJSR:refactor/mainwindow
Draft

Refactor/mainwindow#437
PANDAJSR wants to merge 20 commits intoInkCanvasForClass:betafrom
PANDAJSR:refactor/mainwindow

Conversation

@PANDAJSR
Copy link
Copy Markdown
Contributor

@PANDAJSR PANDAJSR commented Apr 9, 2026

重构了代码

将mainwindow.xaml拆分成多个小文件,提升可维护性

(部分参考了https://github.com/doudou0720/ICC-CE/issues/19,在次感谢)

注意,此计划仍然进行中

PANDAJSR and others added 20 commits February 14, 2026 22:33
- 新增 10 个 UserControl 到 MainWindow_controls 目录
- PPT 导航控件: PPTNavigationBottomLeft/Right, PPTNavigationSideLeft/Right
- 选择工具栏: StrokeSelectionToolbar, ImageSelectionToolbar
- 图像控制: ImageResizeHandles
- 颜色画笔: PenColorPalette, HighlighterColorPalette, PenSettingsPanel
- 每个控件包含依赖属性和路由事件接口
- 修复 ikw:SimpleStackPanel 和 UniformGrid 命名空间引用
- MainWindow.xaml 添加 mwcontrols 命名空间声明
- 减少 MainWindow.xaml 从 10,966 行到 8,873 行(-2,093 行,达成 2,000+ 目标)
- 集成 11 个 UserControl:StrokeSelectionToolbar, ImageSelectionToolbar,
  ImageResizeHandles, PenSettingsPanel (x2), PenColorPalette (x2),
  HighlighterColorPalette (x2), PPTNavigationBottomLeft,
  PPTNavigationBottomRight, PPTNavigationSideLeft, PPTNavigationSideRight
- 更新 PPTUIManager.cs 使用 UserControl API 替代直接元素访问
- 更新相关代码文件以使用新的 UserControl API
- 构建通过(0 错误)
Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@CJKmkp
Copy link
Copy Markdown
Member

CJKmkp commented Apr 10, 2026

建议迁移至net6分支

@doudou0720
Copy link
Copy Markdown
Member

@CJKmkp 不知道你对coauthor的态度是什么...合并该pr可能会导致Github贡献者增加sisyphus-dev-ai

@CJKmkp
Copy link
Copy Markdown
Member

CJKmkp commented Apr 11, 2026

@CJKmkp 不知道你对coauthor的态度是什么...合并该pr可能会导致Github贡献者增加sisyphus-dev-ai

啊这

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants