0
我有一個TableView內的多個ViewCell和ImageCell子類。如何處理Xamarin.Forms代碼中定義的ViewCell的Tap?
我想在用戶點擊單元格時執行一些代碼。整個單元格在觸摸時突出顯示,但我沒有看到在此使用任何事件處理程序。
是不是有一個XAML Tapped等價物,但僅在代碼中?
private void SetTableView()
{
Content = new TableView
{
HasUnevenRows = true,
Intent = TableIntent.Menu,
Root = new TableRoot()
{
new TableSection()
{
new ProfileCell(ImageSource.FromFile("profile_placeholder.png"), "Casa de Férias")
},
new TableSection()
{
new InfoCell()
{
Type = InfoCellTypes.Pending,
Text = "Avaliação do Imóvel",
Detail = "Estado do Processo"
}
}
}
};
}
我敢肯定,必須有一些API來處理這一點。也許我只是沒有找到正確的地方?
謝謝!