Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Is there a performance difference between single line RowDefinition and Multi Line Row Definitions ?

Hi Community

I would like to know if there is a performance difference between Single line Row definitions and multi line row definitions in a xaml grid ?

The reason why Im asking is I want to know if it is worth refactoring old code to be single line ?

**Multi Line **

<Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="2*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="100" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
    </Grid>

Single Line

<Grid RowDefinitions="1*, 20, 25, 14, 20"
      ColumnDefinitions="*, 2*, 40, 50">
</Grid>

Best Answer

Answers

  • moshedevmoshedev Member

    Thank you, very helpful @LeonLu

Sign In or Register to comment.