MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Graphic Artifacts when using GroupBox/Card in ViewBox

未关闭
#2,308 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
C#
星标
16.3k
派生
3.5k
平均合并
1 天 22 小时
30 天内合并 PR
8

描述

I have a UserControl with a ViewBox inside.
I don't know why but in dark mode, some graphic artifacts appear when I move my mouse over them

https://user-images.githubusercontent.com/54487782/116099068-e36b2380-a6ab-11eb-9093-8e60a94b9d62.mp4

I've tried to fix it with the different solutions listed here : https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/issues/1097
I've tried :
- `UseLayoutRounding="True"`
- `SnapsToDevicePixels="True"`
- `RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly`

Moreover, I've tried to visualize my ViewBox with Snoop, but Height and Width values seem normal.

In light mode I don't have this problem.

**- EDIT -**
I lowered the brightness of my screen, and I just saw that there are also artifacts in light mode.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用包含 ViewBox 和 GroupBox/Card 的 UserControl 重现报告中的伪影,并比较深色和浅色模式以及附带的视频。检查已尝试的 UseLayoutRounding、SnapsToDevicePixels 和软件渲染设置;当移动鼠标或降低屏幕亮度时不再出现这些伪影,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。