我正在使用 MonoTouch.Dialog 反射 API 创建一个新的 DialogViewController:
var dashBoard = new RootElement (""){
new Section("My Dashboard", "All alerts, follow-ups, and tasks are automatically synced each time you launch the app") {
new StringElement ("Alerts"),
new StringElement ("Follow-ups"),
new StringElement ("Tasks")
}
};
var dvc = new DialogViewController (dashBoard) {
Autorotate = true
};
navigation.PushViewController (dvc, true);
如果我为 RootElement 提供一个字符串值,我会得到一个带有文本的漂亮标题栏。我想控制那个标题栏的颜色。我没有看到任何允许我这样做的属性。我需要继承 DialogViewController 并构建自己的标题栏吗?