From the course: .NET MAUI: Beyond the Basics
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
AbsoluteLayout - .NET MAUI Tutorial
From the course: .NET MAUI: Beyond the Basics
AbsoluteLayout
- [Instructor] The absolute layout is one of a few layouts that people often ignore. This is likely due to the idea that the absolute layout only uses absolute positioning. That is to say, that all positioning must be done with a specific device-independent pixel amount. And do not do well with device screens of varying sizes. This is certainly true of the default mode of the absolute layout. But there are also proportional modes as well. The proportional features can serve many of the same purposes as a relative layout, but with a much simpler syntax. With the proportional mode, a value of zero to one can be selected that is a fractional proportion of its parents' X position, Y position, width or height. Like other layouts, it is most performant when a width or height, or even a fractional amount is specified instead of using auto, which will force a calculation on the requested size of any children. There…