See the image. I would like the middle line to be a crispy 1 pixel line. You can copy and paste the sample markup into kaxaml .
alt text http://img832.imageshack.us
I found the solution at: http://msdn.microsoft.com/en-us/library/system.windows.media.renderoptions.setedgemode.aspx
<Image Stretch="None" RenderOptions.EdgeMode="Aliased">
RenderOptions.SetEdgeMode(this, EdgeMode.Aliased);
I saw a similar issue with the Border control, although @phi your solution worked in most cases I also had to add the following to get it to completely work:
SnapsToDevicePixels="True"
Change the middle line to:
<LineGeometry StartPoint="0,6" EndPoint="50,6"/>
You can get a crisp line on a pixel boundary by placing the line on a whole numbered unit.