WPF UC in Winforms occasionally has an odd border to the left / visually corrupted

Posted by Ryan ONeill on Stack Overflow See other posts from Stack Overflow or by Ryan ONeill
Published on 2008-11-18T11:40:48Z Indexed on 2010/05/12 23:14 UTC
Read the original article Hit count: 400

Filed under:
|
|
|

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);

alt text

It looks like this when the problem occurs;

alt text

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.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about wpf