XamarinForms - Grid vs nested Stacklayouts - PERFORMANCE sweet spot

Viewed 6195

Considering performance - where is the sweet spot between grid and nested stacklayouts?

How many "levels of nesting" StackLayout makes it more efficient to use Grid?

Is the example below (3 levels of StackLayout nesting) good practice, or should one use Grid instead?

<StackLayout>
    <StackLayout>
        <StackLayout>
            <Label>...text...</Label>
        </StackLayout>
        <StackLayout>
            <Label>...text...</Label>
        </StackLayout>
    </StackLayout>
    <StackLayout>
        <StackLayout>
            <Label>...text...</Label>
        </StackLayout>
        <StackLayout>
            <Label>...text...</Label>
        </StackLayout>
    </StackLayout>
</StackLayout>
1 Answers
Related