MonoTouch.Dialogを使用して設定のようなページを作成しています。以下のlinqは、それぞれがRadioEventElements(OnSelectedイベントを追加するために作成したRadioElementのサブクラス)のセットを持つ1つのセクションを持つRootElementsのセットを作成します。RadioGroupのBackgroundColorを設定する方法はありますか?
// initialize other phone settings by creating a radio element list for each phone setting
var elements = (from ps in PhoneSettings.Settings.Keys select (Element) new RootElement(ps, new RadioGroup(null, 0))).ToList();
// loop through the root elements we just created and create their substructure
foreach (RootElement rootElement in elements)
{
rootElement.Add(new Section()
{
(from val in PhoneSettings.Settings[rootElement.Caption].Values select (Element) new RadioEventElement(val.Name)).ToList()
});
// ...
}
私が実装している設定の1つは、現在、アプリ内のさまざまな画面の背景色にすぎない「テーマ」です。 TableView.BackgroundColorプロパティを目的の色に設定することで、すべてのページを正しくスタイルすることができます。ラジオグループにナビゲートするときに、親DialogViewControllerによって自動的に作成されプッシュされる新しいDialogViewControllerは例外です。
この子DialogViewControllerのスタイルを設定する(または少なくとも背景色を設定する)方法はありますか?