private void BlazorMobileService_OnBlazorMobileLoaded(object source, BlazorMobileOnFinishEventArgs args) { //BlazorMobile is ready. We should call StateHasChanged method in order to call BuildRenderTree again. //This time, it should load your app with base.BuildRenderTree() method call. BlazorMobileService.HideElementById("placeholder"); StateHasChanged(); }
private void BlazorMobileService_OnBlazorMobileLoaded(object source, BlazorMobileOnFinishEventArgs args) { //InvokeAsync is mainly needed for .NET Core implementation that need the renderer context InvokeAsync(() => { //BlazorMobile is ready. We should call StateHasChanged method in order to call BuildRenderTree again. //This time, it should load your app with base.BuildRenderTree() method call. BlazorMobileService.HideElementById("placeholder"); StateHasChanged(); }); }