Setting MenuFlyoutSubItem IconImageSource throws a NullReferenceException #25893
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
i/regression
This issue described a confirmed regression on a currently supported version
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Setting MenuFlyoutSubItem IconImageSource throws a NullReferenceException
Steps to Reproduce
Add the following to a MenuFlyout:
<MenuFlyoutSubItem IconImageSource="dotnet_bot.png" Text="Test" />
Actual: Throws a NullReferenceException:
Expected: MenuFlyoutSubItem displayed with the given icon
MenuFlyoutItems work OK:
<MenuFlyoutItem IconImageSource="dotnet_bot.png" Text="Test" />
Link to public reproduction project repository
https://github.com/molesmoke/MauiTestApp/tree/net9.0-menuflyoutsubitem-nre
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: