-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
自定义标题栏 #624
Conversation
This file contains 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
Tamarahill
approved these changes
May 20, 2023
2023-05-29.190224.mp4 |
2023-05-31.175312.mp4 |
发现了 NavigationView 一个恼人的 bug,导航栏的图标和文字不是对齐的。有一个两年前的 PR:microsoft/microsoft-ui-xaml#5187 ,这属于微软的传统艺能了。 |
完美😎 |
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.
系统标题栏的问题:
我们需要移除系统标题栏,自己实现它。实现一个和操作系统完美集成的标题栏非常困难,但幸好我们只需要支持 Win10 和 Win11,这大大降低了复杂度。我们也有开源项目可以参考:
Windows Termial 的标题栏实现的很好,技术栈也和我们相同,因此有很大的参考性。它最主要的问题是调整窗口大小时会露出原始标题栏,十分丑陋。
framelesshelper 实现了几乎完美的标题栏,它包含了大量的 hack,值得参考。
最终我希望达到和 UWP 相同的效果,UWP(Application Frame Host)有着目前最完美的标题栏实现,而最新的 WinUI 3 则不忍直视😅当然无论如何 microsoft/microsoft-ui-xaml#759 是无法在应用层修复的(WinUI 3 也没有修复)。