migueldeicaza / MonoTouch.Dialog

Tools to simplify creating dialogs with the user using MonoTouch
MIT License
430 stars 211 forks source link

CellLayoutMarginsFollowReadableWidth #239

Open lantona opened 8 years ago

lantona commented 8 years ago

I have a

dialogviewcontroller

with multiple subroots. I want to set the cell margins as they were before ios9.

I have set the following

this.TableView.CellLayoutMarginsFollowReadableWidth = false;

but it works only for the\ fisrst level**

in the following example how can I set it for each rootelement?

return new RootElement ("Login_settings".Translate()){
    new Section ("ExecutionProfile".Translate()){
    new ESRootElement("SettingsForm_HomeFormConfig".Translate()){
    GetHomeFormElements()
    },
    new ESRootElement("Map".Translate()){
    new Section(){
        new ESBooleanElement("ShowWeatherOnMap".Translate())}
    }
}