lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.04k stars 667 forks source link

MenuItem Icons are separate tab stops from the menu itself #1054

Closed Difegue closed 2 months ago

Difegue commented 2 months ago

Describe the bug

When using a ui:MenuItem with an Icon with keyboard navigation, each menu item takes two tab stops to get through.
Both tabstops open the menu.

This can be seen in the controls gallery app.

To Reproduce

Create a MenuItem with an Icon element.

 <ui:MenuItem Header="wow">
     <ui:MenuItem.Icon>
         <ui:SymbolIcon Symbol="Dismiss20" FontSize="20" Margin="0,0,4,0"/>
     </ui:MenuItem.Icon>
 </ui:MenuItem>

Expected behavior

Tabbing through a MenuItem should have a single tab stop.

Screenshots

image
image

OS version

Irrelevant

.NET version

Irrelevant

WPF-UI NuGet version

3.0.X

Additional context

No response