コード例 #1
0
        private void SetToiletMap(Object clickedItem)
        {
            Toilet selectedLoo = clickedItem as Toilet;

            if (AdaptiveStates.CurrentState == NarrowState)
            {
                Frame.Navigate(typeof(DetailView), selectedLoo.ObjectId);
            }

            if (lastMapPin != null)
            {
                detailMap.MapElements.Remove(lastMapPin);
            }



            lastMapPin = selectedLoo.GetMapIcon();

            detailMap.MapElements.Add(lastMapPin);
            detailMap.Center = selectedLoo.Location;
            //lastMapPin = selectedLoo.UpdateToiletMap(detailMap);
            //detailMap.Center = selectedLoo.Location;
            // MapControl.SetLocation(lastMapPin, selectedLoo.Location);
            //detailMap.Children.Add(lastMapPin);
        }