protected Task ClickHandler() { Clicked?.Invoke(); ParentTabs?.SelectTab(Name); return(Task.CompletedTask); }
/// <summary> /// Handles the item onclick event. /// </summary> /// <returns>A task that represents the asynchronous operation.</returns> protected async Task ClickHandler() { await Clicked.InvokeAsync(); if (ParentTabs != null) { await ParentTabs.SelectTab(Name); } }
protected void ClickHandler() { Clicked?.Invoke(); ParentTabs?.SelectTab(Name); }
/// <summary> /// Handles the item onclick event. /// </summary> /// <returns>A task that represents the asynchronous operation.</returns> protected async Task ClickHandler() { await Clicked.InvokeAsync(); ParentTabs?.SelectTab(Name); }