protected async Task MapLoaded() { DisableAddButton = false; infobox = new InfoBox(new Geocoordinate(), new InfoboxOptions() { Visible = false, Title = "Position", ShowCloseButton = false, Offset = new GeolocatonPoint { X = 0, Y = 30 } }); if (!infoAttached) { await infobox.AttachMap(BingMapId); infoAttached = true; } StateHasChanged(); }