-
-
Save christiannagel/44d4fab8e2b78d243788763f157c5063 to your computer and use it in GitHub Desktop.
Set the position of the MapControl - XAML Island
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnLoadedMap(object sender, RoutedEventArgs e) | |
{ | |
if (sender is Toolkit.MapControl mapControl) | |
{ | |
var point = new Interop.Geopoint(new Interop.BasicGeoposition { Latitude = 48.2, Longitude = 16.3}); | |
bool result = await mapControl.TrySetViewAsync(point); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment