The Blazor has been inspired by Vue, and the Blazor "components' parameters" has the same concept as Vue "components' props". In Vue and similar frameworks, the changing of the props inside the class to which these props are belong is the gross violation.
What about Blazor? Just tried to do this - looks like works fine.
using Utils;using YamatoDaiwaCS_Extensions;namespace FrontEndFramework.Components.ModalDialog;public partial class ModalDialog : Microsoft.AspNetCore.Components.ComponentBase{ [Microsoft.AspNetCore.Components.Parameter] public string? title { get; set; } [Microsoft.AspNetCore.Components.Parameter] public required bool mustDisplay { get; set; } [Microsoft.AspNetCore.Components.Parameter] public bool noDismissingButton { get; set; } = false; [Microsoft.AspNetCore.Components.Parameter] public required Microsoft.AspNetCore.Components.EventCallback onPressDismissingButtonEventCallback { get; set; } [Microsoft.AspNetCore.Components.Parameter] public required Microsoft.AspNetCore.Components.RenderFragment ChildContent { get; set; } protected async void onPressDismissingButton() { this.mustDisplay = false; // HERE await this.onPressDismissingButtonEventCallback.InvokeAsync(); } }