Esempio n. 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> ();
        }
Esempio n. 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> ();
        }