Changes to MenuFlyoutSubItem.Items don't update UI
See original GitHub issueDescribe the bug
Changes to MenuFlyoutSubItem.Items
don’t update UI. Sub menu shows previous items.
Steps to reproduce the bug
- Create
MenuFlyout
withMenuFlyoutSubItem
within. - Fill
MenuFlyoutSubItem.Items
- Show
MenuFlyout
and check content ofMenuFlyoutSubItem
submenu - Call
MenuFlyoutSubItem.Items.Clear()
and than fillMenuFlyoutSubItem.Items
with new items - Open
MenuFlyout
and check content ofMenuFlyoutSubItem
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:
- Created 4 years ago
- Reactions:9
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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… 🤢WinAppSDK 1.3 continues to have this issue. Wasted quite a bit of time not knowing about this bug.