Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
891 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What is the minimum required to dynamically change the displayed element on the page (for example, the number of leading files counting on disk in the code section)what is the minimum required to dynamically change the displayed element on the page (for example, the number of leading files counting on disk in the code section)
After you set the new value to your variable, call
InvokeAsync(StateHasChanged);
This will request a re-render of the component.
Hi, for me worked well. I used it at the end of a long function which use a file stream to read some images. My problem was that the variables changes was reflected in web after one other additional action.
(ex: When a function was executed two time, at the first run the web state was not updated, at the second run the web state displayed the state from the first run)