Xamarin.Forms 网格教程

开始演练本教程的前提条件为已成功完成以下教程:

在本教程中,你将了解如何执行以下操作:

  • 在 XAML 中创建 Xamarin.FormsGrid
  • 指定 Grid 的列和行。
  • 涉及 Grid 中多列或多行的内容。

你将使用 Visual Studio 2019 或 Visual Studio for Mac 创建一个简单的应用程序,演示如何在 Grid 中对控件布局。 以下屏幕截图显示了最终的应用程序:

Screenshot of a Grid that has content that spans multiple columns and rows, on iOS and Android

还将使用适用于 Xamarin.Forms 的 XAML 热重载查看 UI 更改,而无需重新生成应用程序。