aL1CesT 216ea4e0c4 refactor(desktop): 页面切换统一走 INavigationService
侧栏原先是在 MainWindow.axaml.cs 里用一个针对 ListBox.SelectedIndex 的 switch
接起来的,直接调 App.Services.GetRequiredService<...> 从 code-behind 赋页面。
NavigationService 存在、已注册,却从没被用过。

后果:首页的深层链接无法改变侧栏选中项;新增一个页面要同时改 view model 和
code-behind;每个页面即使该是单例也会被重新构造。

现在:
- INavigationService 增加 NavigateRoot<T>(),用于"跳到顶层页面"(清空回退栈),
  与已有的 NavigateTo<T>()、GoBack() 并存。
- MainWindowViewModel 订阅 NavigationChanged,把当前 view model 反映射成侧栏
  索引,因此从首页卡片跳转时侧栏高亮会跟着走。
- MainWindow.axaml.cs 基本清空;ListBox 绑索引,导航由 view model 发起。

这个提交里两处对话框服务的新增是给后面页面用的:
- ShowFilesPickerAsync —— 多选,解密页需要
- ShowQrCodeLoginDialogAsync —— 把网易云二维码对话框作为模态窗口承载
- ShowMessageAsync 补进接口。它早已实现、也早已被调用,只是没写进契约。
2026-11-09 04:27:42 +08:00
2026-01-09 00:25:01 +08:00
2026-01-09 00:25:01 +08:00
2022-10-01 14:01:46 +08:00
2026-01-09 00:15:43 +08:00
2021-05-07 10:26:26 +08:00

English | 简体中文

Disclaimer

  • This tool is for personal learning and research purposes only. The executable binary files are for demonstration purposes only and the source code and its products must not be used for commercial purposes. Otherwise, I here will not be responsible for any related legal issues.
  • Any unit or individual that downloads and uses the software resulting in any accidents, negligence, contract breaches, defamation, copyright or intellectual property infringement, and their resulting losses (including but not limited to direct, indirect, incidental or derivative losses), I here will not bear any legal responsibility.
  • Users clearly agree to all the terms listed in this statement and fully assume the risks and consequences of using this tool. I here will not bear any legal responsibility.

Introduction

ZonyLrcToolX 4 is a cross-platform lyrics download tool based on CEF. QQ Group: 337656932. Detailed video tutorials are available in the group files.

🚧 The current version is under development. 🚧 If you want to see working code, please switch to the dev branch.

Download

To get the latest version, please visit the Release page for download.

Arch Linux User Repository

This software has been packaged into AUR. Arch Linux and its derivative distribution users can install it with the following command:

# yay or other AUR Helpers
yay -S zonylrctoolsx-bin

ZonyLrcTools.Cli --help

Usage

Detailed usage instructions have been moved to a new documentation site. Please visit https://docs.myzony.com for complete documentation.

Donation

爱发电

Star History

Star History Chart

S
Description
ZonyLrcToolsX 是一个能够方便地下载歌词的小软件。
Readme MIT
18 MiB
0 Stars 1 Watchers 0 Forks
Languages
C# 99.7%
PowerShell 0.2%
Shell 0.1%