Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set the position of the MapControl - XAML Island
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
You can’t perform that action at this time.