Skip to content

Check mark doesn't show on MenuItem #523

Description

@bobvandevijver

Usage Information

Avalonia 12.1.0, Windows 11

Description

The check mark on a MenuItem when it's using ToggleType="CheckBox" doesn't appear.

Reproduction Steps

  1. Create a new Avalonia project
  2. Use the Material theme
  3. Use the following XAML code in MainWindow.axaml:
<StackPanel>
    <Menu>
        <MenuItem Header="Menu">
            <MenuItem ToggleType="CheckBox" IsChecked="True" Header="Checked Menu Item"/>
        </MenuItem>
    </Menu>
</StackPanel>

Expected Behavior

I'd have expected the check mark to appear.

Actual Behavior

No checkmark is shown.

Regression?

No response

Known Workarounds

No response

Anything else?

Very similar to AvaloniaUI/Avalonia#15417 which was created for the simple Avalonia theme back with 11.1.0.

Material theme

Image

Fluent theme

Image

Could you help with a pull-request?

No

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions