public MealPlanPage(RootPage root) { try { InitializeComponent(); App.Configuration.InitialAsync(this); NavigationPage.SetHasNavigationBar(this, false); this._model = new MealPlanViewModel(App.CurrentApp.MainPage.Navigation) { Root = root, BindDataSourceAction = () => { AccordionMain.DataSource = this._model.AccordionSources; AccordionMain.DataBind(); }, }; BindingContext = this._model; AccordionMain.FirstExpaned = true; this.Page_Load(); } catch (Exception ex) { var exceptionHandler = new ExceptionHandler(TAG, ex); } }
public MealPlanPage(RootPage root) { try { InitializeComponent(); _model = new MealPlanViewModel(App.CurrentApp.MainPage.Navigation) { Root = root, BindDataSourceAction = () => { AccordionMain.DataSource = _model.AccordionSources; AccordionMain.DataBind(); }, }; Init(); } catch (Exception exception) { var msg = exception; } }
public PlaylistPage(RootPage root) { try { InitializeComponent(); _deviceInfo = DependencyService.Get <IDeviceInfo>(); _model = new PlaylistViewModel(App.CurrentApp.MainPage.Navigation) { Root = root, BindDataSourceAction = () => { AccordionMain.DataSource = _model.AccordionSources; AccordionMain.DataBind(); }, PopupAction = OpenPopupWindow, ClosePopupAction = CloseWindow }; Init(); } catch (Exception ex) { var exceptionHandler = new ExceptionHandler(TAG, ex); } }