Ejemplo n.º 1
0
 /// <summary>
 /// Provides the base method for handling view events.
 /// </summary>
 /// <param name="sender">Event sender</param>
 /// <param name="e">View event</param>
 /// <param name="token">Cancellation token.</param>
 protected virtual async Task OnViewEventsAsync(object sender, ViewEvent e, CancellationToken token = default)
 {
     if (e.IsChild() && (e.IsOpened(false) || e.IsClosed(false)))
     {
         Model.OpenInlineViews = OpenInlineViews;
     }
     await InvokeAsync(() => StateHasChanged());
 }