private void LoadPivotItems() { this.MainPivot.Items.Clear(); /* var tablesPage = new TablesPage(); var tablesPivot = new PivotItem(); tablesPivot.Header = "tables list"; tablesPivot.Name = "TablesList"; tablesPivot.Content = tablesPage; tablesPage.ViewModel = this.ViewModel.TablesPageViewModel; this.MainPivot.Items.Add(tablesPivot); */ var sampleDataTablesPage = new SampleDataTablePage(); var sampleDataTablesPivot = new PivotItem(); sampleDataTablesPivot.Header = "Все Акции"; sampleDataTablesPivot.Name = "SampleDataRows"; sampleDataTablesPivot.Content = sampleDataTablesPage; sampleDataTablesPage.ViewModel = this.ViewModel.SampleDataTablePageViewModel; sampleDataTablesPage.Navigate += this.OnNavigatePage; this.MainPivot.Items.Add(sampleDataTablesPivot); var listBlobsPage = new ListBlobsPage(); var listBlobsPivot = new PivotItem(); listBlobsPivot.Header = "about us"; listBlobsPivot.Name = "ListBlobs"; listBlobsPivot.Content = listBlobsPage; listBlobsPage.ViewModel = this.ViewModel.ListBlobsPageViewModel; //listBlobsPage.TakePhoto += this.OnLaunchCamera; this.MainPivot.Items.Add(listBlobsPivot); var notificationsPage = new NotificationsPage(); var notificationsPivot = new PivotItem(); notificationsPivot.Header = "Оповещения"; notificationsPivot.Name = "PushNotifications"; notificationsPivot.Content = notificationsPage; notificationsPage.ViewModel = this.ViewModel.NotificationsViewModel; notificationsPage.BeginPushConnection += this.OnBeginPushConnection; notificationsPage.EndPushConnection += this.OnEndPushConnection; this.MainPivot.Items.Add(notificationsPivot); /* var listQueuesPage = new ListQueuesPage(); var listQueuesPivot = new PivotItem(); listQueuesPivot.Header = "queues"; listQueuesPivot.Name = "ListQueuesPage"; listQueuesPivot.Content = listQueuesPage; listQueuesPage.ViewModel = this.ViewModel.ListQueuesPageViewModel; listQueuesPage.Navigate += this.OnNavigatePage; this.MainPivot.Items.Add(listQueuesPivot); */ this.MainPivot.SelectedItem = sampleDataTablesPivot; }