// Constructor
 public MainPage()
 {
     DataContext = new MainPageViewModel(new Geolocator(), SynchronizationContext.Current);
     InitializeComponent();
 }
Esempio n. 2
0
		// Constructor
		public MainPage()
		{
			DataContext = new MainPageViewModel();
			InitializeComponent();
		}
Esempio n. 3
0
        public MainPage()
        {
            this.InitializeComponent();
	        DataContext = new MainPageViewModel (new Geolocator(), SynchronizationContext.Current);
        }
Esempio n. 4
0
 // Constructor
 public MainPage()
 {
     DataContext = new MainPageViewModel();
     InitializeComponent();
 }