private void SetLocation(double latitude, double longitude, double zoomLevel, bool showLocator) { // Move the pushpin to geo coordinate Microsoft.Phone.Controls.Maps.Platform.Location location = new Microsoft.Phone.Controls.Maps.Platform.Location(); location.Latitude = latitude; location.Longitude = longitude; bingMap.SetView(location, zoomLevel); bingMapLocator.Location = location; if (showLocator) { locator.Visibility = Visibility.Visible; } else { locator.Visibility = Visibility.Collapsed; } }
private void SetLocation(double latitude, double longitude, double zoomLevel, bool showLocator) { // Move the pushpin to geo coordinate Microsoft.Phone.Controls.Maps.Platform.Location location = new Microsoft.Phone.Controls.Maps.Platform.Location(); location.Latitude = latitude; location.Longitude = longitude; bingMap.SetView(location, zoomLevel); bingMapLocator.Location = location; if (showLocator) { locator.Visibility = Visibility.Visible; } else { locator.Visibility = Visibility.Collapsed; } }