public NotificationsPage()
 {
     InitializeComponent();
     _viewModel     = new NotificationsPageViewModel();
     _tokenStorage  = DependencyService.Get <ITokenStorage>();
     BindingContext = _viewModel;
 }
Пример #2
0
        public NotificationsPage()
        {
            InitializeComponent();
            Title = "Notifications";

            BindingContext = notificationsPageViewModel = new NotificationsPageViewModel();

            if (notificationsPageViewModel.notificationsList.Count == 0)
            {
                notificationsPageViewModel.LoadNotificationsCommand.Execute(null);
            }
        }
Пример #3
0
        public NotificationsPage()
        {
            NavigationPage.SetHasNavigationBar(this, false);

            _model = new NotificationsPageViewModel
            {
                Loading         = true,
                Items           = new ObservableCollection <NotificationModel>(),
                ShowMarkAllRead = false
            };

            this.BindingContext = _model;

            InitializeComponent();
        }
Пример #4
0
 public NotificationsPage(MainPageViewModel parent)
 {
     _parent        = parent;
     BindingContext = _viewModel = new NotificationsPageViewModel(_parent);
     InitializeComponent();
 }