Exemplo n.º 1
0
        void client_GetChoicedPointCompleted(object sender, GetChoicedPointCompletedEventArgs e)
        {
            //MapLayer layer = new MapLayer();
            //map.Children.Add(layer);
            foreach (User item in e.Result)
            {
                Image pin = pushpinList.First(c => (int)c.Tag == item.Id);
                //Pushpin pin = new Pushpin();
                //pin.Location = new GeoCoordinate(item.Latitude,item.Longitude);
                //  pin.Content = "this be choiced";
                // pin.Background = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
                pin.Source = new BitmapImage(new Uri("Images/choicepin.png", UriKind.Relative));

                //layer.AddChild(pin, pin.Location);
            }
        }
Exemplo n.º 2
0
        void client_GetChoicedPointCompleted(object sender, GetChoicedPointCompletedEventArgs e)
        {
            //MapLayer layer = new MapLayer();
            //map.Children.Add(layer);
            foreach (User item in e.Result)
            {
                Image pin = pushpinList.First(c => (int)c.Tag == item.Id);
                //Pushpin pin = new Pushpin();
                //pin.Location = new GeoCoordinate(item.Latitude,item.Longitude);
               //  pin.Content = "this be choiced";
               // pin.Background = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
                pin.Source = new BitmapImage(new Uri("Images/choicepin.png", UriKind.Relative));

                //layer.AddChild(pin, pin.Location);
            }
        }