digimezzo / Foundation

A set of libraries which can be used as a foundation for Windows Desktop applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Borderless windows have a 1px border on the left in virtual machines

digimezzo opened this issue · comments

In some virtual machines (tested in a Windows 10 virtual machine in VMware), borderless windows have a 1 px border on the left size. This is caused by this line in the BorderlessWindowBase class:

this.windowChrome.GlassFrameThickness = new Thickness(1, 0, 0, 0);

The border of 1 px is needed to allow correct sizing of the window. Removing the border solves this issue, but other window issues arise. No other solution was found. Somehow, this border is only visible in some (not all) virtual machines and not physical machines. It might be related to a setting which is specific to virtual machines.

See screenshot:

image

This only happens in 1 VM. I presume it is a VM related issue.