public NotificationsPage() { InitializeComponent(); _viewModel = new NotificationsPageViewModel(); _tokenStorage = DependencyService.Get <ITokenStorage>(); BindingContext = _viewModel; }
public NotificationsPage() { InitializeComponent(); Title = "Notifications"; BindingContext = notificationsPageViewModel = new NotificationsPageViewModel(); if (notificationsPageViewModel.notificationsList.Count == 0) { notificationsPageViewModel.LoadNotificationsCommand.Execute(null); } }
public NotificationsPage() { NavigationPage.SetHasNavigationBar(this, false); _model = new NotificationsPageViewModel { Loading = true, Items = new ObservableCollection <NotificationModel>(), ShowMarkAllRead = false }; this.BindingContext = _model; InitializeComponent(); }
public NotificationsPage(MainPageViewModel parent) { _parent = parent; BindingContext = _viewModel = new NotificationsPageViewModel(_parent); InitializeComponent(); }