"Cannot convert" errors using Login and TemplateForms components

I'm new to Blazor, so I feel like I'm missing some basic understanding - but I'm having lots of difficulty with the TemplateForms. The easiest example is when I copy and paste the demonstration code from the Blazor Login component (radzen.com) page;

  1. At the end of Data=@("SimpleLogin") it gives error CS1662 Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
  2. On the name of the function for Register=@OnRegister and ResetPassword=@OnResetPassword both give the error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'

Is the login page an outdated example?

The examples on TemplateForm component (radzen.com) work out of the box but after making some simple modifications (e.g. using my own shared DTO instead of the one from the example) I get similar "cannot convert" errors. I think if I can understand why the above login form gives its errors, I can work through the others.

These errors means that the provided event arguments do not match the expected event arguments.

OK, what are the expected event arguments? How do I figure that out from the documentation - the only thing I can find is this, which is another example that gives the same error: Login component (radzen.com)

You have probably not set TItem correctly or the event argument is wrong (it should be what TItem is set to). Without any code example that doesn't work we can't help much.

Here's the example I'm working from:

<RadzenTemplateForm Data=@("SimpleLogin") Action="http://www.google.com">
    <RadzenLogin AllowRegister="true" AllowResetPassword="true" 
        Login=@OnLogin Register=@OnRegister ResetPassword=@OnResetPassword />
</RadzenTemplateForm>

@code {
    string userName = "admin";
    string password = "admin";

    void OnLogin(LoginArgs args)
    {
        Console.WriteLine($"Username: {args.Username} and password: {args.Password}");
    }

    void OnRegister(string name)
    {
        Console.WriteLine($"{name} -> Register");
    }

    void OnResetPassword(string value, string name)
    {
        Console.WriteLine($"{name} -> ResetPassword for user: {value}");
    }
}

The event arguments for Register and ResetPassword are wrong. Here is a working version:

<RadzenTemplateForm Data=@("SimpleLogin") Action="http://www.google.com">
    <RadzenLogin AllowRegister="true" AllowResetPassword="true"
        Login=@OnLogin Register=@OnRegister ResetPassword=@OnResetPassword />
</RadzenTemplateForm>

@code {
    string userName = "admin";
    string password = "admin";

    void OnLogin(LoginArgs args)
    {
        Console.WriteLine($"Username: {args.Username} and password: {args.Password}");
    }

    void OnRegister()
    {
        Console.WriteLine($"Register");
    }

    void OnResetPassword(string name)
    {
        Console.WriteLine($"{name} -> ResetPassword for user: {name}");
    }
}