【发布时间】:2016-09-09 06:00:52
【问题描述】:
我有一个 TableView,根中有 3 个 TableSections:
var tableView = new TableView
{
RowHeight = 60,
Root = new TableRoot
{
firstTableSection,
secondTableSection,
thirdTableSection,
}
}
var firstTableSection = new TableSection("First")
{
// Cells
}
var firstTableSection = new TableSection("First")
{
// Cells
}
var firstTableSection = new TableSection("First")
{
// Cells
}
如何使用自定义渲染器更改 TableSection 文本的文本颜色?
public class TestTableViewRenderer : Xamarin.Forms.Platform.Android.TableViewRenderer
{
protected override void OnElementChanged(Xamarin.Forms.Platform.Android.ElementChangedEventArgs<Xamarin.Forms.TableView> e)
{
base.OnElementChanged(e);
// Not sure how to add this property here
}
}
【问题讨论】:
标签: c# android xamarin xamarin.forms custom-renderer