private void MapView_Info(object sender, UI.MapInfoEventArgs e) { if (e?.MapInfo?.Feature != null) { featureInfo.Text = $"Click Info:{Environment.NewLine}{e.MapInfo.Feature.ToDisplayText()}"; } }
private void MapView_Info(object sender, UI.MapInfoEventArgs e) { if (e?.MapInfo?.Feature != null) { foreach (var style in e.MapInfo.Feature.Styles) { if (style is CalloutStyle) { style.Enabled = !style.Enabled; e.Handled = true; } } mapView.Refresh(); } }
private void MapView_Info(object sender, UI.MapInfoEventArgs e) { if (e?.MapInfo?.Feature != null) { featureInfo.Text = $"Click Info:{Environment.NewLine}{e.MapInfo.Feature.ToDisplayText()}"; foreach (var style in e.MapInfo.Feature.Styles) { if (style is CalloutStyle) { style.Enabled = !style.Enabled; e.Handled = true; } } mapView.Refresh(); } }