예제 #1
0
 /// <summary>
 /// Handles the item onclick event.
 /// </summary>
 /// <returns>A task that represents the asynchronous operation.</returns>
 protected async Task ClickHandler()
 {
     if (ParentBarDropdown is not null && ParentDropdownState.Mode == BarMode.Horizontal)
     {
         if (!ParentBarDropdown.WasJustToggled)
         {
             await ParentBarDropdown.Hide(true);
         }
     }
     await Clicked.InvokeAsync();
 }
예제 #2
0
        public Task Close(CloseReason closeReason)
        {
            ParentBarDropdown?.Hide();

            return(Task.CompletedTask);
        }