Custom layout in a ContentView appears to 'force' a 1 pixel padding around the content. #19016
Unanswered
DanTravison
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a ContentView with a custom layout (FlyoutLayout) containing custom control (Thumb) on one of the edges and a ContentPresenter to fill the remaining space.
The problem I see is there's a 1 pixel padding around the arranged content.
For example, if I change the BackgroundColor to Green and layout explicitly arranges a control at 0,0, I still see Green between the top/left of the control and the top/left edge of the FlyoutLayout.
I've tested this on Windows and MacCatalyst and both exhibit the behavior, and I can find no combination of LayoutOptions that solves the problem.
Beta Was this translation helpful? Give feedback.
All reactions