private void SetLastKnownLocation() { var loc = LocationHelper.GetLastKnownLocation(); if (loc.HasValue) { Location = loc.Value; } Available = loc.HasValue; Unsure = true; }
protected override void OnNavigatedTo(object parameter) { if (parameter == null) { var location = LocationHelper.GetLastKnownLocation(); if (location != null) { OnChangeViewRequested(new MapView(location.Value, 16.75) { Animate = false }); } } base.OnNavigatedTo(parameter); }