示例#1
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            await base.OnAfterRenderAsync(firstRender);

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

                _UnloadTriggered = true;
            }
        }
示例#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();
            }
        }
示例#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);
            }
        }