HandyOrg / HandyOrg/HandyControl
Bug: Frame 中内容的样式丢失
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
我在 MainWindow 中使用 SideMenu 时,添加了 ContentFrame ( Frame 控件 )用于显示 Page 类的页面,但是当我运行窗口时,Frame 中的页面无论主题如何更改,文本都显示为黑色
Steps to reproduce the bug
只需在 Frame 中添加有文本的页面,再把所有控件的 Skin 都设为 Dark,就会显示为这样
Expected behavior
页面文件按钮主题等均生成无误,只有 TextBlock 等文本控件的前景色始终为黑色
除了直接判断主题来改变文本颜色,目前未找到其他方法解决此问题
Screenshots
NuGet package version
HandyControl 3.4.0
IDE
Visual Studio 2022
Framework type
.Net Framework 4.8
Windows version
Windows 11 (22000)
Additional context
程序只引用了 HandyControl 3.5.1.0,未引用 HandyControls
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in a MainWindow using SideMenu, ContentFrame, a Frame and a Page containing TextBlock controls, with all control skins set to Dark. Start by tracing how the HandyControl theme reaches the framed Page and its text controls. Done means the Page's text foreground follows the selected theme without manually checking the theme in application code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100