Skip to content

[Bug]: ThemedIcon cannot be used for MenuFlyoutItem.Icon #144

@Pinguin2001

Description

@Pinguin2001

Describe the bug

I'd like to use the ThemedIcon for a MenuFlyoutItem, however this is not possible.

Maybe I am missing something, I don't see a mention anywhere in the docs.

Steps to reproduce the bug

<MenuFlyoutItem
    Click="ContextMenuItem_Click"
    Tag="SelectAll"
    Text="Select all">
    <MenuFlyoutItem.Icon>
        <!--  does not work here  -->
        <dev:ThemedIcon Style="{StaticResource App.ThemedIcons.SelectAll}" />
    </MenuFlyoutItem.Icon>
</MenuFlyoutItem>

Expected behavior

I'd like to be able to use ThemedIcon just like FontIcons

Screenshots

Image

NuGet package version

DevWinUI 9.5.0

IDE

Visual Studio 2026

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions