question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changes to MenuFlyoutSubItem.Items don't update UI

See original GitHub issue

Describe the bug Changes to MenuFlyoutSubItem.Items don’t update UI. Sub menu shows previous items.

Steps to reproduce the bug

  1. Create MenuFlyout with MenuFlyoutSubItem within.
  2. Fill MenuFlyoutSubItem.Items
  3. Show MenuFlyout and check content of MenuFlyoutSubItem submenu
  4. Call MenuFlyoutSubItem.Items.Clear() and than fill MenuFlyoutSubItem.Items with new items
  5. Open MenuFlyout and check content of MenuFlyoutSubItem submenu It’s same as in step 3.

Expected behavior MenuFlyoutSubItem menu should represent current MenuFlyoutSubItem.Items and follow it’s changes

Version Info Windows.UI.Xaml.Controls.MenuFlyoutItem from Windows 18362 SDK

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
JosephMartcommented, Nov 6, 2020

@SnowyWreath running into the same issue. A hack I have found that seems to work so far is to reinstantiate MenuFlyoutSubItem every time you need to update it’s Items… 🤢

1reaction
JPTGamesAndAppscommented, Apr 29, 2023

WinAppSDK 1.3 continues to have this issue. Wasted quite a bit of time not knowing about this bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# XAML UWP - MenuFlyoutItem List not updating ...
I found a workaround by removing the exsiting MenuFlyoutSubItem and adding a new one each time the Flyout is opened. So it's not...
Read more >
MenuFlyoutSubItem Class (Windows.UI.Xaml.Controls)
Represents a menu item that displays a sub-menu in a MenuFlyout control. ... Authors of custom controls use this property to change the...
Read more >
Xaml Islands Win32 MenuFlyoutSubItem crash
Run the app, open the menu, hover over the first SubItem until the menu animation starts playing, then quickly move to the second...
Read more >
[Solved]-Bind and update ObservableCollection<T> to ...
directly update the sub items of menuflyoutsubitem doesn't have any effect on surface. so to do that you can modify the codes like...
Read more >
#WindowsAppSDK - Twitter ಶೋಧ / Twitter
Describe the bug Changes to MenuFlyoutSubItem.Items don't update UI. Sub menu shows previous items. Steps to reproduce the bug Create MenuFlyout with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found