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:
- Return to Visual Studio.
- Open the
Shared\Dialog.razor
file. - Add
@onclick
events to each of the buttons:
Get hands-on with 1400+ tech skills courses.