Example #1
0
        public void SetPage(BaseContentPage basePage, BaseContentUI baseContentUI)
        {
            ViewPage  = basePage;
            ContentUI = baseContentUI;

            Title = ContentUI.Title;
            appBarBackBtnTitle = NavigationPage.GetBackButtonTitle(ViewPage);

            InitProperty();

            ViewPage.Appearing += ViewPage_Appearing;
            InitLifecycle();
        }
        public BaseContentPage(Type viewModelType, Type contentUIType)
        {
            viewModel = (BaseViewModel)Activator.CreateInstance(viewModelType);
            contentUI = (BaseContentUI)Activator.CreateInstance(contentUIType);

            //Binding ContentUI with ViewModel
            viewModel.SetPage(this, contentUI);

            //Set binding model.
            BindingContext = viewModel;

            //Binding property for screen title 
            this.SetBinding(TitleProperty, "Title");

            this.SetBinding(IsBusyProperty, "IsLoadBusy");

            InitContentLayout();
            InitLoadingLayout();
        }
Example #3
0
        public BaseContentPage(Type viewModelType, Type contentUIType)
        {
            viewModel = (BaseViewModel)Activator.CreateInstance(viewModelType);
            contentUI = (BaseContentUI)Activator.CreateInstance(contentUIType);

            //Binding ContentUI with ViewModel
            viewModel.SetPage(this, contentUI);

            //Set binding model.
            BindingContext = viewModel;

            //Binding property for screen title
            this.SetBinding(TitleProperty, "Title");

            this.SetBinding(IsBusyProperty, "IsLoadBusy");

            InitContentLayout();
            InitLoadingLayout();
        }
        public void SetPage(BaseContentPage basePage, BaseContentUI baseContentUI)
        {
            ViewPage = basePage;
            ContentUI = baseContentUI;

            Title = ContentUI.Title;
            appBarBackBtnTitle = NavigationPage.GetBackButtonTitle(ViewPage);

            InitProperty();

            ViewPage.Appearing += ViewPage_Appearing;
            InitLifecycle();
        }