Open lendres opened 7 months ago
I had seen this before, at some point.
I think this is a windows-only bug in upstream MAUI or WinUI
We use a combination of background color and padding at the DataGridCell level to efficiently produce a border effect. Compared to the slow Border controls. I had tried using ColumnSpacing at the DataGridRow level but I think it had some problems.
Using an actual Border control wouldn't help, either, since apparently resizing Border controls on Windows is likewise problematic. https://github.com/dotnet/maui/issues/20407
The current approach of doing borders at the cell-level in general probably isn't ideal, because the widths are actually doubled. So if you want borders that have a width of 1, you would need to set BorderThickness to 0.5
Perhaps refactoring to using ColumnSpacing will work better today than in the past.
I can reproduce it but only if I resize to very specific widths. The initial width doesn't show it.
Just tried it. Using ColumnSpacing works but has the same issue.
There was a bugfix in MAUI recently that may be related.
Describe the bug There appears to be a minor issue with the borders if the border size is set to zero.
To Reproduce Steps to reproduce the behavior:
Expected behavior When the border size is set to zero, no vertical borders should be visible.
Screenshots First example:
After changing the size of the window, the bar has moved:
Desktop (please complete the following information):