dotnet/maui

Binding IconImageSource on MenuFlyoutItem does not update on runtime.

Open

#17,210 opened on Sep 5, 2023

View on GitHub
 (1 comment) (2 reactions) (0 assignees)C# (23,245 stars) (1,951 forks)batch import
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

  1. Create a .net MAUI project
  2. Add a MenuBarItem on xaml/codebehind
  3. Add Binding on the IconImageSource property of a MenuFlyoutItem
  4. 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

Reproduction Project

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

Contributor guide

Binding IconImageSource on MenuFlyoutItem does not update on runtime. · dotnet/maui#17210 | Good First Issue