Example #1
0
        public MapPage ()
        {
            this.InitializeComponent ();
            map.Credentials = Constants.BingMapsKey;

            locator = new Geolocator ();
            popup = new MapPopup ();

            userPin = new Pushpin ();
            userPin.Tapped += OnPinTapped;

            DataContext =
                assignmentViewModel = ServiceContainer.Resolve<AssignmentViewModel> ();
        }
Example #2
0
        public MapPage()
        {
            this.InitializeComponent();
            map.Credentials = Constants.BingMapsKey;

            locator = new Geolocator();
            popup   = new MapPopup();

            userPin         = new Pushpin();
            userPin.Tapped += OnPinTapped;

            DataContext             =
                assignmentViewModel = ServiceContainer.Resolve <AssignmentViewModel> ();
        }