private void HandleFocus(EventArgs e) { if (IsEnabled) { Listbox.GoToOption(this); return; } Listbox.GoToOption(ListboxFocus.Nothing); }
protected void HandleMouseLeave(MouseEventArgs e) { if (!IsEnabled) { return; } if (!IsActive) { return; } Listbox.GoToOption(ListboxFocus.Nothing); }
protected async Task HandleMouseEnter(MouseEventArgs e) { if (!IsEnabled) { return; } if (Listbox.State == ListboxState.Closed) { return; } await Listbox.OptionsFocusAsync(); if (IsActive) { return; } Listbox.GoToOption(this); }