Exemple #1
0
 public MainPage()
 {
     this.InitializeComponent();
     glocator = new Geolocator();
     pos      = new PositionLocator();
     myMap.Children.Add(pos);
     //S3: Event of the Position Changed
     glocator.PositionChanged += new Windows.Foundation.TypedEventHandler <Geolocator, PositionChangedEventArgs>(glocator_PositionChanged);
 }
        public MainPage()
        {
            this.InitializeComponent();
            glocator = new Geolocator();
            pos = new PositionLocator();
            myMap.Children.Add(pos);
            //S3: Event of the Position Changed
            glocator.PositionChanged += new Windows.Foundation.TypedEventHandler<Geolocator, PositionChangedEventArgs>(glocator_PositionChanged);

        }