MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

DialogHost Graphic artifacts

Open a1292999652 opened this issue 4 years ago • 6 comments

I used DialogHost and added "MaterialDesignEmbeddedDialogHost", but the result surprised me! c9d35a672cce78012730d443b32e57e If you can’t find a clue, I will provide a minimal demo again, thank you

a1292999652 avatar Jun 02 '21 13:06 a1292999652

Looks like graphic artifacts, right?

ElieTaillard avatar Jun 03 '21 07:06 ElieTaillard

Looks like graphic artifacts, right?

When you type or when the mouse passes over, these lines will flicker and appear

a1292999652 avatar Jun 03 '21 07:06 a1292999652

Ok so yes it's graphic artifacts. It's a known problem. To fix that problem, try to add UseLayoutRounding="True" on your UserControl/Window. If it doesn't fix the problem, you can bypass it. Try to wrap your control in a Grid/Border and put a BackGround color on it. This issue can help you to bypass the problem : https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/issues/2308

ElieTaillard avatar Jun 03 '21 08:06 ElieTaillard

@Xaalek Thank you very much for your reply, I used UseLayoutRounding="True", but it didn’t solve the problem. Changing the background color worked for me, and the lines disappeared. I don’t know whether to close this issue, your issue is similar to this one

a1292999652 avatar Jun 03 '21 08:06 a1292999652

Keep the issue open. I think you should change the title. A title like 'Graphic artifacts in DialogHost' would be more appropriate.

ElieTaillard avatar Jun 03 '21 08:06 ElieTaillard

See a solution in #2125 reply riquich commented on Sep 23, 2021

gitjsdr26 avatar Apr 30 '23 22:04 gitjsdr26