Blazor customisation/customization

I figured that was the case but the documentation teased that there was something else to follow.

I guess I am missing something. What am I doing wrong here.

I create a new application, then a single blank page, add a button, then right click and open the .cs in VS Code. I extend the partial class by adding a namespace and my code. I allow Radzen to spot the changes and restart/build etc.

Why doesn't it appear as an 'Invoke method' in dropdown for the 'onclick' event of a button on the same page?

What are the 'rules' to apply to this kind of hooking in or am I getting the wrong end of the stick here?

The code below is just an example, I know I can use the notification dropdown, that is not my point. I want to know how to fire off some async code from a button using the invoke dropdown in a way that my code doesn't get overwritten.

I asked a similar question here: Invoke custom methods

Cheers

Mark.

using System;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using Radzen;
using Radzen.Blazor;
using Microsoft.AspNetCore.Components.Web;

namespace Radzen3.Pages
{
    public partial class HomeComponent
    {
	public async void Button0ClickV2(MouseEventArgs args)
        {
            NotificationService.Notify(NotificationSeverity.Error, $"Button clicked", $"This was from Button0ClickV2", 1500);
        }
    }
}