Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluent icon "MusicAlbum" doesn't seem to exist in control "MenuFlyoutItem" #9329

Closed
Miaoyww opened this issue Feb 10, 2024 · 2 comments
Closed
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@Miaoyww
Copy link

Miaoyww commented Feb 10, 2024

Describe the bug

Just like the title, while i try to use MenuFlyoutItem control with icon "MusicAlbum" like this:

<MenuFlyoutItem Text="CheckAlbum" Icon="MusicAlbum" />

It crashed and reported\

"Failed to create a 'Microsoft.UI.Xaml.Controls.IconElement' from the text 'MusicAlbum'. [Line: 46 Position: 49]”

but when i tried to use FontIcon like this, it worked well.

                   <MenuFlyoutItem Text="CheckAlbum">
                        <MenuFlyoutItem.Icon>
                            <FontIcon Glyph="&#xE93C;"/>
                        </MenuFlyoutItem.Icon>
                    </MenuFlyoutItem>

Steps to reproduce the bug

Above..

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Windows version

Windows Insider Build (xxxxx)

Additional context

Windows Version: Windows 11 23H2 os.22631.3085

@Miaoyww Miaoyww added the bug Something isn't working label Feb 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 10, 2024
@kmgallahan
Copy link
Contributor

kmgallahan commented Feb 10, 2024

Named glyphs / symbols only work if they exist in the Symbol Enum, which MusicAlbum does not:

https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.symbol

If you would like to use a glyph from the Segoe MDL2 Assets font that is not included in the Symbol enum, then use a FontIcon.

@Miaoyww
Copy link
Author

Miaoyww commented Feb 10, 2024

alright, well thanks!

@Miaoyww Miaoyww closed this as completed Feb 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added needs-triage Issue needs to be triaged by the area owners and removed needs-triage Issue needs to be triaged by the area owners labels Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

2 participants