void icon_Tapped(object sender, AMapIcon e) { TextBlock textBlock = new TextBlock(); textBlock.Text = e.Data.ToString(); textBlock.FontSize = 20; textBlock.Foreground = new SolidColorBrush(Colors.Black); Grid info = new Grid(); info.Width = 100; info.Height = 100; info.Background = new SolidColorBrush(Colors.White); info.Children.Add(textBlock); e.ShowInfoWindow(info); }
void icon2_Tapped(object sender, AMapIcon e) { e.ShowInfoWindow(new InfoWindowControl(Colors.Green, e.Data.ToString()), new Point(1, 1), 0); }
void icon1_Tapped(object sender, AMapIcon e) { e.ShowInfoWindow(new InfoWindowControl(Colors.Blue, e.Data.ToString())); }
void icon3_Tapped(object sender, AMapIcon e) { e.ShowInfoWindow(new InfoWindowControl(Colors.Red, e.Data.ToString()), new Point(0.5, 1), 20); }