Exemple #1
0
        protected BaseContentPage()
        {
            Host = BuildHost.Create(this, (buildEnvironment, layoutContext) =>
            {
                var statefulContainer = CreateStateContainer(buildEnvironment);

                _statefulContainer = statefulContainer;

                Init(buildEnvironment);

                return(statefulContainer);
            });


            // now start the host
            Host.Start();
        }
Exemple #2
0
        /// <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();
        }