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

您也會使用 XAML 熱重新載入 Xamarin.Forms 來查看 UI 變更,而不需重建應用程式。