Exemplo n.º 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();
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 4
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();
        }