Small dark line when using three borders to create one.
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?
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?
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: Small dark line when using three borders to create one.
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:
You can disable it for these borders because they are rectangular and don't need it:
Code: Select all
<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.
That fixed it! Thanks.