示例#1
0
        protected void PushPageModel <T> (object data) where T : BasePageModel
        {
            BasePageModel pageModel = TinyIoC.TinyIoCContainer.Current.Resolve <T>();;

            var page = ResolvePageModel <T> (data, pageModel);

            pageModel.PreviousPageModel = this;

            IRootNavigation rootNav = TinyIoC.TinyIoCContainer.Current.Resolve <IRootNavigation> ();

            rootNav.PushPage(page, pageModel);
        }
示例#2
0
        protected void PopPageModel(object data)
        {
            if (PreviousPageModel != null && data != null)
            {
                var initMethod = TinyIoC.TypeExtensions.GetMethod(PreviousPageModel.GetType(), "ReverseInit");
                if (initMethod != null)
                {
                    initMethod.Invoke(PreviousPageModel, new object[] { data });
                }
            }
            IRootNavigation tabbedNav = TinyIoC.TinyIoCContainer.Current.Resolve <IRootNavigation> ();

            tabbedNav.PopPage();
        }
示例#3
0
        protected void PopPageModel()
        {
            IRootNavigation rootNav = TinyIoC.TinyIoCContainer.Current.Resolve <IRootNavigation> ();

            rootNav.PopPage();
        }