dotnet/maui

Binding IconImageSource on MenuFlyoutItem does not update on runtime.

オープン

#17,210 opened on 2023/09/05

 (4 件のコメント) (2 件のリアクション) (0 人の担当者)C# (1,951 件のフォーク)batch import
area-controls-menubargood first issueplatform/macosplatform/windowst/bugt/desktop

Repository metrics

Stars
 (23,245 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド