MonoTouch.Dialog を使用して、設定のようなページを作成しています。以下の linq は、RadioEventElements (OnSelected イベントを追加するために作成した RadioElement のサブクラス) のセットを持つ 1 つのセクションを持つ RootElements のセットを作成します。
// 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 によって自動的に作成およびプッシュされる新しい DialogViewControllers を除きます。
この子 DialogViewController のスタイルを設定する (または少なくとも背景色を設定する) 方法はありますか?