Skip to content

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

@Difegue

Description

@Difegue

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions