Esempio n. 1
0
        /// <summary>
        /// Handles the item onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected async Task ClickHandler()
        {
            if (Disabled)
            {
                return;
            }

            ParentListGroup?.SelectItem(Name);

            await Clicked.InvokeAsync(null);
        }
        /// <summary>
        /// Handles the item onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected Task ClickHandler()
        {
            if (Disabled)
            {
                return(Task.CompletedTask);
            }

            ParentListGroup?.SelectItem(Name);

            return(Clicked.InvokeAsync(null));
        }
Esempio n. 3
0
        /// <summary>
        /// Handles the item onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected async Task ClickHandler()
        {
            if (Disabled)
            {
                return;
            }

            if (ParentListGroup != null)
            {
                await ParentListGroup.SelectItem(Name);
            }

            await Clicked.InvokeAsync();
        }
        protected override void OnInitialized()
        {
            ParentListGroup?.LinkItem(this);

            base.OnInitialized();
        }
 protected void ClickHandler()
 {
     Clicked?.Invoke();
     ParentListGroup?.SelectItem(Name);
 }