XAMARIN TableRow代码怎么设置颜色

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
 var tableRow = new TableRow(this);
 tableRow.LayoutParameters = new TableLayout.LayoutParams(TableLayout.LayoutParams.FillParent,
TableLayout.LayoutParams.WrapContent);
tableRow.Background=这里这么写

运行结果及报错内容

写完必须脱坑靠找不到帮助文档 java随便找到了

我的解答思路和尝试过的方法
我想要达到的结果

Resources resource = context.getResources();
row.setBackgroundColor(resource.getColor(R.color.red)
ps 希望可以给分