What is an AbsoluteLayout in .NET MAUI?

Platform: .NET MAUI| Category: Layouts

An AbsoluteLayout allows you to specify the exact position of child elements using absolute coordinates.

<AbsoluteLayout>
    <Label Text="AbsoluteLayout Example"
   FontSize="20"
   TextColor="Black"
   AbsoluteLayout.LayoutBounds="50, 50, AutoSize, AutoSize"
   AbsoluteLayout.LayoutFlags="None" />
 
    <Button Text="Click me!"
    BackgroundColor="Blue"
    TextColor="White"
    AbsoluteLayout.LayoutBounds="100, 100, 150, 50"
    AbsoluteLayout.LayoutFlags="None" />
</AbsoluteLayout>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.