We noticed some weird behaviour in our WPF application.
We have a customised, expander like UserControl, which has a Border around it – we’ll call it expander. There can be several of these expanders in a view, which means scrolling is needed. When an expander is scrolled out of view, and back again, the border sometimes changes colour. Not every time, and not consistantly. For example, the lower border can be slighly lighter in colour, while the right border can be darker, even though they use the same brush. The next time it’s scrolled out of view, and back again, the colours can be back to normal.
It almost looks like a scaling/antialiasing effect. Has anyone else seen this behaviour, and is there anything we can do about it?
To complicate things a bit – but only a bit – the expanders are children of a ListView. This is because we want to emulate HTML anchoring, so we externally can jump directly to a given expander. Could this be part of the problem?
This seems to be a anti-aliasing issue, as explained here and here.