I have been using the System.Windows.Xps.Packaging.XpsDocument
class in an WPF application to export a collection of UIElements. It seems to work quite okay, but not always.
When there are two visuals with exactly the same visual properties, they do not appear, when the XPS file is opened with Microsoft's XPS Viewer. The identical elements do not appear at all. If I open the xps file with some other viewer or just use some online tool to convert it to PDF, everything is rendered properly:
Does anyone know what might be the cause for this behavior and how can I remedy it?
Here is also a link to the XPS file, that demonstrates the behavior.
Thank you!