dotnet/maui
View on GitHubBinding IconImageSource on MenuFlyoutItem does not update on runtime.
Open
#17,210 opened on Sep 5, 2023
area-controls-menubargood first issueplatform/macosplatform/windowst/bugt/desktop
Description
Description
I have faced these issues while trying to bind icon to IconImageSource of MenuFlyoutItem:
- Binding does not work with glyph.
- Binding IconImageSource works only on the first time and does not updates on runtime.
Steps to Reproduce
- Create a .net MAUI project
- Add a MenuBarItem on xaml/codebehind
- Add Binding on the IconImageSource property of a MenuFlyoutItem
- Change the icon that is used for binding through a click event
Expected: Icon on MenuFlyoutItem should be updated.
Link to public reproduction project repository
Version with bug
7.0.92
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows, Mac catalyst
Did you find any workaround?
Each time removing all MenuFlyoutItem from MenuBarItem and adding again works as expected.
Relevant log output
No response