asusralis
Topic Author
Posts: 53
Joined: 30 Jul 2018, 05:03

Small dark line when using three borders to create one.

23 Aug 2019, 03:38

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?
 
User avatar
sfernandez
Site Admin
Posts: 1628
Joined: 22 Dec 2011, 19:20

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

23 Aug 2019, 13:35

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>
 
asusralis
Topic Author
Posts: 53
Joined: 30 Jul 2018, 05:03

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

23 Aug 2019, 19:12

That fixed it! Thanks.

Who is online

Users browsing this forum: Bing [Bot] and 5 guests