Which of the two is the better way to use Xamarin?

현명 지 1 Reputation point
2023-01-16T08:08:49.1933333+00:00

Which of the two is the better way to use Xamarin?

#.1
<Grid Grid.Row="0" Grid.Column="0" BackgroundColor="Yellow">
	<Label Text="팔레트번호" HorizontalOptions="End" VerticalOptions="Center" BackgroundColor="Green"/>
</Grid>

#.2
<Label Grid.Row="0" Grid.Column="0" Text="팔레트번호" HorizontalTextAlignment="End" VerticalTextAlignment="Center" BackgroundColor="Green"/>
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,291 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,021 Reputation points Microsoft Vendor
    2023-01-17T05:34:37.83+00:00

    Hello,

    According to Xamarin's official documentation example of Grid, the second way is more recommended.

    See this document for details: Xamarin.Forms Grid.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments