Adding EventCallback Parameters

Learn how to add an event handler in Blazor WebAssembly.

We'll cover the following

We need to add @onclick events for both the “OK” button and the “Cancel” button. We do this as follows:

  1. Return to Visual Studio.
  2. Open the Shared\Dialog.razor file.
  3. Add @onclick events to each of the buttons:

Get hands-on with 1200+ tech skills courses.