protected BaseContentPage() { Host = BuildHost.Create(this, (buildEnvironment, layoutContext) => { var statefulContainer = CreateStateContainer(buildEnvironment); _statefulContainer = statefulContainer; Init(buildEnvironment); return(statefulContainer); }); // now start the host Host.Start(); }
/// <summary> /// Create the environment to allow for Model View Update to operate for this activity. /// </summary> /// <param name="savedInstanceState"></param> protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); _host = BuildHost.Create(this, (buildEnvironment, layoutContext) => { var statefulContainer = CreateStateContainer(buildEnvironment); Init(buildEnvironment); return(statefulContainer); }); // now start the host _host.Start(); }