No sure why this is, but the behavior for a menu item and profile menu item differ when it comes to handling or even having a Click parameter.
ProfileMenuItems have no Click parameter and actually execute the method from the parents Click arg (Radzen.PanelMenuItem.OnClick() :
public async System.Threading.Tasks.Task OnClick(MouseEventArgs args)
{
if (Menu != null)
{
await Menu.Click.InvokeAsync(this); // note Menu is the parent ProfileMenu
}
}
While regular menu items allow each menu item to have its own Click parameter (Radzen.MenuItem.OnClick() :
public async Task OnClick(MouseEventArgs args)
{
CODE DELETED FOR BREVITY
await Parent.Click.InvokeAsync(eventArgs);
if (Click.HasDelegate)
{
await Click.InvokeAsync(eventArgs);
}
Is this the desired behavior? I would think its preferred to have an individual Click parameter for any menu item, panel, standard or profile?