恢复旧版布局#165
Open
LanYun2022 wants to merge 2 commits into
Open
Conversation
LanYun2022
commented
Jul 11, 2026
There was a problem hiding this comment.
Pull request overview
该 PR 以“恢复旧版布局”为目标,将主窗口导航从 NavigationView 调整回“顶部工具栏 + 左侧侧边栏 + 右侧内容区”的布局,并补充对应的图标资源与控件实现,以匹配旧版交互结构。
Changes:
- 主窗口 UI 结构重做:新增顶部
MyToolBar,左侧使用ui:ListView作为侧边栏,替代原NavigationView导航。 - 主窗口导航逻辑重写:按工具栏 Tab 切换侧边栏项,并根据侧边栏索引切换不同 View/List。
- 新增若干资源图标入口(Home/Type/Star/Refresh/About)并在
AppImage暴露对应静态图像引用。
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| ContextMenuManager/Properties/Resources.cs | 新增多个图片资源访问器(Home/Type/Star/Refresh/About)。 |
| ContextMenuManager/Methods/AppImage.cs | 新增对应的静态图标引用,供 UI/逻辑层使用。 |
| ContextMenuManager/MainWindow.xaml.cs | 导航/切换逻辑从 NavigationView 重构为自定义 ToolBar + SideBar 模式。 |
| ContextMenuManager/MainWindow.xaml | 主窗口布局重排:顶部工具栏、左侧侧边栏、右侧内容、底部状态栏。 |
| ContextMenuManager/Controls/MyToolBar.xaml.cs | 新增自定义工具栏与按钮控件逻辑(选择态/hover 动画、搜索框承载)。 |
| ContextMenuManager/Controls/MyToolBar.xaml | 新增工具栏控件的布局(按钮容器 + 搜索框占位)。 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
