/// <summary> /// Called when the current location has changed. /// </summary> protected void RaiseLocationChanged() { var locationChanged = LocationChanged; if (locationChanged != null) { var currentLocation = GetCurrentLocation(); var value = new LocationChangedEventArgs(currentLocation); _dispatcherService.BeginInvoke(() => locationChanged(this, value)); } }