Esempio n. 1
0
        public Map()
        {
            InitializeComponent();
            BuildApplicationBars();
            ApplicationBar = mapAppBar;
            myPushpin.Background = Application.Current.Resources["PhoneAccentBrush"] as Brush;
            myPushpin.Content = "Annei Klekchyan";

            LocationManager loc = new LocationManager();
            loc.StartLocationCapturing();
            LocationManager.CoordinatesResponseReceived += (position) =>
            {
                map.Children.Remove(myPushpin);
                myPushpin.Location = position; 
                map.Children.Add(myPushpin);
                map.SetView(position, 16f);
            };
        }