WPF UC in Winforms occasionally has an odd border to the left / visually corrupted
- by Ryan ONeill
I have a WPF user control I created that is used to show the state of tasks in my UI. I get the odd report back that the control sometimes has a nasty looking border to the left and I cannot reproduce it.
The control looks like this (when working) (grey tick=not run, green=OK,red cross=fail,hourglass=running);
It looks like this when the problem occurs;
It may have something to do with the layering of those icons, when the state changes the others are made invisible and the relevant icon is made visible. The four icons are all stacked on top of each other.
It could also be the background in theory, which I'll look at next. Problem is reported on both flat panel and CRT displays.
Any guidance greatly appreciated.
Update:
1) SnapsToDevicePixels does not affect the issue.
2) Grid is not used, only a canvas.