Replies: 1 comment
-
IIRC, the idea behind the current design of AbsoluteLayout was to enable "docking" a child item to any corner... Still, I agree that the implementation could be rethought to be more intuitive while keeping that feature. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently in XF, let's say you want to achieve this UI: a red frame that have half of it's parent width, and start's from the middle of it's parent:
using absolute layout, you think that is the result of this code
but in face that will give different result and make the frame centred, the right code will be
I find this weird and not intuitive design, and leads to bad readability. "1, x, 0.5, x" for a code reader should mean the frame is already out of the layout bounds.
how can we put a frame of: X = 0.4 of the width, Y = 0.6 of height, Width = 0.77 of width, Height = 0.13 of height?
Should be:
AbsoluteLayout.LayoutBounds="0.4, 0.6, 0.77, 0.13"
.. easy to read easy to imagineXF:
AbsoluteLayout.LayoutBounds="0.81, 0.19, 0.77, 0.13"
.. not rightBeta Was this translation helpful? Give feedback.
All reactions