//public string AssignmentUrl { get; set; } //public string AssignmentName { get; set; } public DoWorkflowPage(Workflow workflow, string actionuUrl) { InitializeComponent(); BindingContext = viewModel = new BaseWebViewViewModel(); viewModel.Title = workflow.EntityName; viewModel.Url = actionuUrl; // TODO should add a decorator for this boilerplate: WebView.Navigating += viewModel.OnNavigating; WebView.Navigated += viewModel.OnNavigated; }
//public string AssignmentUrl { get; set; } //public string AssignmentName { get; set; } public WorkAssignmentPage(Assignment assignment) { InitializeComponent(); BindingContext = viewModel = new BaseWebViewViewModel(); viewModel.Title = assignment.EntityName; this.assignment = assignment; // TODO should add a decorator for this boilerplate: WebView.Navigating += viewModel.OnNavigating; WebView.Navigated += viewModel.OnNavigated; UpdateAssignmentUrl(); }
public PortalPage() { InitializeComponent(); BindingContext = viewModel = new BaseWebViewViewModel(); viewModel.Title = this.Title = "The Portal"; WebView.Navigating += viewModel.OnNavigating; WebView.Navigated += viewModel.OnNavigated; MessagingCenter.Subscribe <MainPage>(this, Message.CLOSE_LOGIN, (obj) => { // subscribe to CLOSE_LOGIN as a proxy for the server URL changing, for now // as a workaround for the fact that this page currently bootstraps before login, // and OnAppearing doesn't seem to fire consistently on tab clicks :( UpdatePortalUrl(); }); }