Page 1 of 1

Small dark line when using three borders to create one.

Posted: 23 Aug 2019, 03:38
by asusralis
Images: https://i.imgur.com/Mr6wAAH.png, https://i.imgur.com/Y9pxzzh.png

The element uses three borders to make it seem like it's one, but there is a little dark line between two of the borders. How do I get rid of it?

Re: Small dark line when using three borders to create one.

Posted: 23 Aug 2019, 13:35
by sfernandez
It looks like the geometry generated in the edges for PPAA (Per-Primitive Anti-Aliasing) is the cause of that line, because border is semitransparent.

You can disable it for these borders because they are rectangular and don't need it:
<UserControl
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions">
    ...
    <Border noesis:Element.PPAAMode="Disabled" .../>
    ...
</UserControl>

Re: Small dark line when using three borders to create one.

Posted: 23 Aug 2019, 19:12
by asusralis
That fixed it! Thanks.