[英]How to use TableView in Xamarin.Forms?
我是Xamarin.Forms的新手,對Xamarin TableView有疑問。
我要創建一個類似於以下所示的布局。
問題是,我可以為此使用TableView還是為此使用另一種選擇? 誰能用XAML代碼顯示此內容?
提前致謝。
編輯:底部的選項卡不是必需的。
我的意思不是無禮,但這很容易從文檔頁面中檢索出來,並且可以嘗試一下。
要開始使用,請嘗試以下操作:
<TableView Intent="Settings">
<TableView.Root>
<TableView.Section>
<ImageCell Text="Invoice Customization" Source="Invoice_image.png" />
<ImageCell Text="Invoice Defaults" Source="Invoice_image.png" />
</TableView.Section>
<TableView.Section Title="Security">
<SwitchCell Text="Use Touch ID" />
</TableView.Section>
... etc.
</TableView.Root>
</TableView>
Xamarin無法使用單元格末尾的箭頭和“安全性”部分下方的頁腳文本。開箱即用的表單可能會要求您編寫自定義渲染器。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.