Exemplo n.º 1
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            await base.OnAfterRenderAsync(firstRender);

            if (OnUnload.HasDelegate && !_UnloadTriggered)
            {
                await OnUnload.InvokeAsync(EventArgs.Empty);

                _UnloadTriggered = true;
            }
        }
Exemplo n.º 2
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            await base.OnAfterRenderAsync(firstRender);

            if (OnUnload.HasDelegate && !_UnloadTriggered)
            {
                await OnUnload.InvokeAsync(EventArgs.Empty);

                _UnloadTriggered = true;
            }

            if (firstRender)
            {
                HandleUnknownAttributes();
                StateHasChanged();
            }
        }
Exemplo n.º 3
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            await base.OnAfterRenderAsync(firstRender);

            if (OnUnload.HasDelegate && !_UnloadTriggered)
            {
                await OnUnload.InvokeAsync(EventArgs.Empty);

                _UnloadTriggered = true;
            }

            if (firstRender)
            {
                HandleUnknownAttributes();
                StateHasChanged();

                var Page = await JsRuntime.InvokeAsync <IJSObjectReference>("import", JsScripts.Page.ScriptURI);

                await Page.InvokeVoidAsync(JsScripts.Page.OnAfterRender);
            }
        }