Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Navigation;
- using Microsoft.Phone.Controls;
- using Microsoft.Phone.Shell;
- using StrategicRoute.Resources;
- using StrategicRoute.Interfaces;
- namespace StrategicRoute
- {
- public partial class MainPage : PhoneApplicationPage, IUIPage, IWebServicePage
- {
- // Constructor
- public MainPage()
- {
- InitializeComponent();
- // Set the data context of the listbox control to the sample data
- DataContext = App.ViewModel;
- // Sample code to localize the ApplicationBar
- //BuildLocalizedApplicationBar();
- }
- // Load data for the ViewModel Items
- protected override void OnNavigatedTo(NavigationEventArgs e)
- {
- if (!App.ViewModel.IsDataLoaded)
- {
- App.ViewModel.LoadData();
- }
- (IUIPage)this.Load(); // THROWS ERROR
- }
- private void NewTrip_Button_Click(object sender, RoutedEventArgs e)
- {
- NavigationService.Navigate(new Uri("/NewTrip.xaml", UriKind.Relative));
- }
- public void IUIPage.Load()
- {
- MessageBox.Show("1");
- }
- public void IWebServicePage.Load()
- {
- MessageBox.Show("2");
- }
- }
- }
Add Comment
Please, Sign In to add comment